From 6d5002028a2fe71b67d8106b30c6602bc8e44121 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Wed, 19 May 2021 21:59:21 +0200 Subject: cc,wasi: link compiled WASI libc with wasm-ld --- src/Compilation.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 5c856b6217..1d1f2f01b8 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3262,7 +3262,8 @@ fn detectLibCFromLibCInstallation(arena: *Allocator, target: Target, lci: *const pub fn get_libc_crt_file(comp: *Compilation, arena: *Allocator, basename: []const u8) ![]const u8 { if (comp.wantBuildGLibCFromSource() or comp.wantBuildMuslFromSource() or - comp.wantBuildMinGWFromSource()) + comp.wantBuildMinGWFromSource() or + comp.wantBuildWASILibcSysrootFromSource()) { return comp.crt_files.get(basename).?.full_object_path; } -- cgit v1.2.3