aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_hash_map.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-06-09 22:21:58 +0200
committerJakub Konka <kubkon@jakubkonka.com>2021-06-10 06:36:16 +0200
commitb82d6422ac5c0a68b812319f689b66b52b0eaf59 (patch)
tree77d72cbf28a637f523ac27ccbc0a2499a75a501a /lib/std/array_hash_map.zig
parente8e305b67ce4993a3789e0e3e8baa6064de45114 (diff)
downloadzig-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/array_hash_map.zig')
0 files changed, 0 insertions, 0 deletions