diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-06-07 11:02:11 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-06-09 01:25:38 +0200 |
| commit | 4e4722a65e3bc3d6bb4518df3082ffea7c2a7c5d (patch) | |
| tree | 02bf3ff87229ec8df06bd8296050e318e1cb90cc /src/link.zig | |
| parent | 93a4403271ef62d8ae2cd10f58cc23d4b7bbdf4d (diff) | |
| download | zig-4e4722a65e3bc3d6bb4518df3082ffea7c2a7c5d.tar.gz zig-4e4722a65e3bc3d6bb4518df3082ffea7c2a7c5d.zip | |
cc,wasi: build referenced-only emulated components
Move parsing of system libs into `main.zig` next to where we decide
if we should link libC, and, if targeting WASI, if the specified
libname equals one of the emulated components, save it on the side
and remove it from the system libs. Then, build *only* those parts
of WASI libc that were preserved in the previous step.
This also fixes building of different crt1 bits needed to support
reactors and commands.
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig index fcb263f03e..c013db4947 100644 --- a/src/link.zig +++ b/src/link.zig @@ -110,6 +110,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, lib_dirs: []const []const u8, rpath_list: []const []const u8, |
