Skip to content

Commit

Permalink
Auto merge of #124858 - alexcrichton:some-wasi-changes, r=michaelwoer…
Browse files Browse the repository at this point in the history
…ister

rustc: Some small changes for the wasm32-wasip2 target

This commit has a few changes for the wasm32-wasip2 target. The first two are aimed at improving the compatibility of using `clang` as an external linker driver on this target. The default target to LLVM is updated to match the Rust target and additionally the `-fuse-ld=lld` argument is dropped since that otherwise interferes with clang's own linker detection. The only linker on wasm targets is LLD but on the wasip2 target a wrapper around LLD, `wasm-component-ld`, is used to drive the process and perform steps necessary for componentization.

The final commit changes the output of all objects on the wasip2 target to being PIC by default. This improves compatibilty with shared libaries but notably does not mean that there's a turnkey solution for shared libraries. The hope is that by having the standard libray work both with and without dynamic libraries will make experimentation easier.
  • Loading branch information
bors committed May 8, 2024
2 parents 99b6781 + 5743977 commit 312464b
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 312464b

Please sign in to comment.