From bc6904eccc53da5b4de0728c8b52e6d0e9ed522e Mon Sep 17 00:00:00 2001 From: Josh Wolfe Date: Thu, 8 Oct 2020 21:40:56 -0400 Subject: include compiler_rt and c for wasm static libraries --- src/link/Wasm.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/link') 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); } -- cgit v1.2.3