aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2023-08-31 17:12:12 +0200
committerLuuk de Gram <luuk@degram.dev>2023-11-03 12:48:52 +0100
commit58618afaee7c14feedad4f115e9a4468bac4c529 (patch)
tree90a4a16f016817ec171c49b4f5e1b42dc504e0bd /lib/std/Build
parent1cb7a01b25349c42dbe207b68f9e19b92890b3d2 (diff)
downloadzig-58618afaee7c14feedad4f115e9a4468bac4c529.tar.gz
zig-58618afaee7c14feedad4f115e9a4468bac4c529.zip
wasm-linker: correctly pass --shared and --pie
When linking a WebAssembly binary using wasm-ld, we will now correctly pass --shared when building a dynamic library and --pie when `-fpic` is given. This is a breaking change and users who currently build dynamic libraries for WebAssembly but wish to have an executable without a main, should use build-exe instead while supplying `-fno-entry`. We also verify the user does not supply --export-memory when -dynamic is enabled. By default we set this flag now to 'false' when `-dynamic` is used to ensure we do not enable it as it's enabled by default for regular WebAssembly binaries.
Diffstat (limited to 'lib/std/Build')
0 files changed, 0 insertions, 0 deletions