Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc: Some small changes for the wasm32-wasip2 target #124858

Merged
merged 3 commits into from
May 8, 2024

Commits on May 3, 2024

  1. rustc: Change LLVM target for the wasm32-wasip2 Rust target

    This commit changes the LLVM target of for the Rust `wasm32-wasip2`
    target to `wasm32-wasip2` as well. LLVM does a bit of detection on the
    target string to know when to call `wasm-component-ld` vs `wasm-ld` so
    otherwise clang is invoking the wrong linker.
    alexcrichton committed May 3, 2024
    Configuration menu
    Copy the full SHA
    7a77108 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2024

  1. rustc: Don't pass -fuse-ld=lld on wasm targets

    This argument isn't necessary for WebAssembly targets since `wasm-ld` is
    the only linker for the targets. Passing it otherwise interferes with
    Clang's linker selection on `wasm32-wasip2` so avoid it altogether.
    alexcrichton committed May 4, 2024
    Configuration menu
    Copy the full SHA
    400e754 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. rustc: Change wasm32-wasip2 to PIC-by-default

    This commit changes the new `wasm32-wasip2` target to being PIC by
    default rather than the previous non-PIC by default. This change is
    intended to make it easier for the standard library to be used in a
    shared object in its precompiled form. This comes with a hypothetical
    modest slowdown but it's expected that this is quite minor in most use
    cases or otherwise wasm compilers and/or optimizing runtimes can elide
    the cost.
    alexcrichton committed May 7, 2024
    Configuration menu
    Copy the full SHA
    38b2bd7 View commit details
    Browse the repository at this point in the history