diff options
| author | Josh Wolfe <thejoshwolfe@gmail.com> | 2020-10-08 21:40:56 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-09 01:54:42 -0400 |
| commit | bc6904eccc53da5b4de0728c8b52e6d0e9ed522e (patch) | |
| tree | d0c47226ec210cfd956b0536acf94e3b65ef9051 /src/link | |
| parent | 1951ecb228d5eb9956ef4487e20be03d87a2153d (diff) | |
| download | zig-bc6904eccc53da5b4de0728c8b52e6d0e9ed522e.tar.gz zig-bc6904eccc53da5b4de0728c8b52e6d0e9ed522e.zip | |
include compiler_rt and c for wasm static libraries
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/Wasm.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig index 3f879a3b32..e4fd409a4d 100644 --- a/src/link/Wasm.zig +++ b/src/link/Wasm.zig @@ -374,7 +374,7 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation) !void { try argv.append(p); } - if (self.base.options.output_mode == .Exe and !self.base.options.is_compiler_rt_or_libc) { + if (self.base.options.output_mode != .Obj and !self.base.options.is_compiler_rt_or_libc) { if (!self.base.options.link_libc) { try argv.append(comp.libc_static_lib.?.full_object_path); } |
