aboutsummaryrefslogtreecommitdiff
path: root/src/link/Wasm.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-01-26 14:59:15 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-26 15:01:59 -0700
commit40c9ce2caf8f024a249b3524813eb495cf1341b3 (patch)
tree84dd4cfca306b33956746650155dd14d4e4fafac /src/link/Wasm.zig
parent35503b3d3fe1bfce19f1ea3e78a75ce87b0ed646 (diff)
downloadzig-40c9ce2caf8f024a249b3524813eb495cf1341b3.tar.gz
zig-40c9ce2caf8f024a249b3524813eb495cf1341b3.zip
zig cc: add --hash-style linker parameter
This is only relevant for ELF files. I also fixed a bug where passing a zig source file to `zig cc` would incorrectly punt to clang because it thought there were no positional arguments.
Diffstat (limited to 'src/link/Wasm.zig')
-rw-r--r--src/link/Wasm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig
index 9a9c6c464c..7d01ef4083 100644
--- a/src/link/Wasm.zig
+++ b/src/link/Wasm.zig
@@ -1203,7 +1203,7 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation) !void {
// We are about to obtain this lock, so here we give other processes a chance first.
self.base.releaseLock();
- comptime assert(Compilation.link_hash_implementation_version == 1);
+ comptime assert(Compilation.link_hash_implementation_version == 2);
for (self.base.options.objects) |obj| {
_ = try man.addFile(obj.path, null);