diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-09-13 11:17:13 +0200 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2023-01-02 23:30:07 +0000 |
| commit | 7770b06b06efc4abda75e608e67044a0a344771e (patch) | |
| tree | e27f0a59d6da393f625e75dd3094b396f5937a22 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | d6f99e535a301a421dfee52a7c25bb4bdf420344 (diff) | |
| download | rust-7770b06b06efc4abda75e608e67044a0a344771e.tar.gz rust-7770b06b06efc4abda75e608e67044a0a344771e.zip | |
only specify --target by default for -Zgcc-ld=lld on wasm
On macOS, it's not yet clear which cases of clang/OS/target/SDK version impact how to find ld/lld/rust-lld. The --target is not needed on our current targets with a vanilla config, but may be in some cases. Specifying it all the time breaks the 10.7+ targets on x64 macOS. We try to only specify it on macOS if the linker flavors are different, for possible cases of cross-compilation with `-Zgcc-ld=lld` but the expectation is that it should be passed manually when needed in these situations.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
