diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-06-09 01:23:05 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-06-09 01:25:38 +0200 |
| commit | 2ee1f7898b27447bb9b21d284842415c7459db4b (patch) | |
| tree | 1e22f27275c7c6ee6928ddd3a7c90f4b66d12ee6 /src/link.zig | |
| parent | dd84ccda5daf63373b2b5df3ac02025017b7efbf (diff) | |
| download | zig-2ee1f7898b27447bb9b21d284842415c7459db4b.tar.gz zig-2ee1f7898b27447bb9b21d284842415c7459db4b.zip | |
cc,wasi: store CRTFile enum in wasi_emulated_libs
* then, in `link/Wasm.zig` map `CRTFile` to full emulated libs name
* move logic for removing any mention of WASI snapshot
`wasi_snapshot_preview1` from `Compilation.zig` into `link/Wasm.zig`
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/link.zig b/src/link.zig index c013db4947..4072e90ca3 100644 --- a/src/link.zig +++ b/src/link.zig @@ -13,6 +13,7 @@ const Type = @import("type.zig").Type; const Cache = @import("Cache.zig"); const build_options = @import("build_options"); const LibCInstallation = @import("libc_installation.zig").LibCInstallation; +const wasi_libc = @import("wasi_libc.zig"); pub const producer_string = if (std.builtin.is_test) "zig test" else "zig " ++ build_options.version; @@ -110,7 +111,7 @@ pub const Options = struct { framework_dirs: []const []const u8, frameworks: []const []const u8, system_libs: std.StringArrayHashMapUnmanaged(void), - wasi_emulated_libs: []const []const u8, + wasi_emulated_libs: []const wasi_libc.CRTFile, lib_dirs: []const []const u8, rpath_list: []const []const u8, |
