rustc_target: Refactor internal linker flavors
In accordance with the design from https://github.com/rust-lang/rust/pull/96827#issuecomment-1208441595
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use crate::spec::{LinkerFlavor, TargetOptions};
|
||||
use crate::spec::{LinkerFlavor, Lld, TargetOptions};
|
||||
|
||||
pub fn opts() -> TargetOptions {
|
||||
let mut opts = super::windows_msvc_base::opts();
|
||||
|
||||
opts.abi = "uwp".into();
|
||||
opts.vendor = "uwp".into();
|
||||
opts.add_pre_link_args(LinkerFlavor::Msvc, &["/APPCONTAINER", "mincore.lib"]);
|
||||
opts.add_pre_link_args(LinkerFlavor::Msvc(Lld::No), &["/APPCONTAINER", "mincore.lib"]);
|
||||
|
||||
opts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user