aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-08-06 22:34:20 +0200
committerAndrew Kelley <andrew@ziglang.org>2024-08-12 16:08:28 -0700
commitd6f997259487fc01b1aa6d24bdc7b960c4aaec46 (patch)
tree8bc66b10c07bbc616f8a3016eac90a93b7b4a02a /src/link
parent6d23850108b5d3278f5b1cad395ff8da4fdfebeb (diff)
downloadzig-d6f997259487fc01b1aa6d24bdc7b960c4aaec46.tar.gz
zig-d6f997259487fc01b1aa6d24bdc7b960c4aaec46.zip
all: Handle spirv in addition to spirv(32,64) where applicable.
Some of this is arbitrary since spirv (as opposed to spirv32/spirv64) refers to the version with logical memory layout, i.e. no 'real' pointers. This change at least matches what clang does.
Diffstat (limited to 'src/link')
-rw-r--r--src/link/SpirV.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/SpirV.zig b/src/link/SpirV.zig
index 57e69ed860..f76ceec2f5 100644
--- a/src/link/SpirV.zig
+++ b/src/link/SpirV.zig
@@ -80,7 +80,7 @@ pub fn createEmpty(
errdefer self.deinit();
switch (target.cpu.arch) {
- .spirv32, .spirv64 => {},
+ .spirv, .spirv32, .spirv64 => {},
else => unreachable, // Caught by Compilation.Config.resolve.
}