Auto merge of #108996 - pnkfelix:rollback-part-of-pr-104137-that-broke-wasm-linker-overriding, r=petrochenkov
Rollback part of pr 104137 that broke wasm linker overriding This is a quick fix to address #108910
This commit is contained in:
commit
17c1167216
@ -1,3 +1,4 @@
|
||||
use super::crt_objects::LinkSelfContainedDefault;
|
||||
use super::{cvs, Cc, LinkerFlavor, PanicStrategy, RelocModel, TargetOptions, TlsModel};
|
||||
|
||||
pub fn options() -> TargetOptions {
|
||||
@ -94,6 +95,13 @@ macro_rules! args {
|
||||
|
||||
pre_link_args,
|
||||
|
||||
// FIXME: Figure out cases in which WASM needs to link with a native toolchain.
|
||||
//
|
||||
// rust-lang/rust#104137: cannot blindly remove this without putting in
|
||||
// some other way to compensate for lack of `-nostartfiles` in linker
|
||||
// invocation.
|
||||
link_self_contained: LinkSelfContainedDefault::True,
|
||||
|
||||
// This has no effect in LLVM 8 or prior, but in LLVM 9 and later when
|
||||
// PIC code is implemented this has quite a drastic effect if it stays
|
||||
// at the default, `pic`. In an effort to keep wasm binaries as minimal
|
||||
|
Loading…
Reference in New Issue
Block a user