diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-06-09 22:21:58 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2021-06-10 06:36:16 +0200 |
| commit | b82d6422ac5c0a68b812319f689b66b52b0eaf59 (patch) | |
| tree | 77d72cbf28a637f523ac27ccbc0a2499a75a501a /lib/std/multi_array_list.zig | |
| parent | e8e305b67ce4993a3789e0e3e8baa6064de45114 (diff) | |
| download | zig-b82d6422ac5c0a68b812319f689b66b52b0eaf59.tar.gz zig-b82d6422ac5c0a68b812319f689b66b52b0eaf59.zip | |
link: don't link system libs by the wasm linker
The only allowed system libraries that we can link are libraries
that are part of the sysroot such as libc or WASI emulated
subcomponents. This is required as Wasm allows to defer symbol
resolution until load time.
For example, the following import in Zig
```zig
extern "wasi_snapshot_preview1" fn proc_exit() void;
```
would normally result in appending `-lwasi_snapshot_preview1` flag
to the linker line. However, for Wasm/WASI, the symbol is provided
at load rather than link time, therefore, the linker should not be
concerned with resolving the symbol. As a result, we should not
consider system libs by the Wasm linker.
Diffstat (limited to 'lib/std/multi_array_list.zig')
0 files changed, 0 insertions, 0 deletions
