aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-28 23:20:14 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-28 23:20:14 -0700
commited06a78f35e7281289249b0d0c119bd64845dd51 (patch)
tree0cde7797b9ef6fe3711834cd574d65428d3e2d63 /src/Compilation.zig
parent73167e80f8a1d440ebc5725a165b7cf484b96170 (diff)
downloadzig-ed06a78f35e7281289249b0d0c119bd64845dd51.tar.gz
zig-ed06a78f35e7281289249b0d0c119bd64845dd51.zip
stage2: WASM LLD linking
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 314b7cdbdd..4bc9679ce2 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -2418,7 +2418,7 @@ fn buildStaticLibFromZig(comp: *Compilation, src_basename: []const u8, out: *?CR
const bin_basename = try std.zig.binNameAlloc(comp.gpa, .{
.root_name = root_name,
.target = target,
- .output_mode = .Lib,
+ .output_mode = .Obj,
});
defer comp.gpa.free(bin_basename);
@@ -2441,7 +2441,7 @@ fn buildStaticLibFromZig(comp: *Compilation, src_basename: []const u8, out: *?CR
.target = target,
.root_name = root_name,
.root_pkg = &root_pkg,
- .output_mode = .Lib,
+ .output_mode = .Obj,
.rand = comp.rand,
.libc_installation = comp.bin_file.options.libc_installation,
.emit_bin = emit_bin,