1
Fork 0
rust/compiler/rustc_target/src/spec/windows_uwp_gnu_base.rs

39 lines
1.3 KiB
Rust
Raw Normal View History

2020-08-13 12:27:13 +02:00
use crate::spec::{LinkArgs, LinkerFlavor, LldFlavor, TargetOptions};
2019-05-27 17:18:14 +02:00
pub fn opts() -> TargetOptions {
let base = super::windows_gnu_base::opts();
// FIXME: This should be updated for the exception machinery changes from #67502
// and inherit from `windows_gnu_base`, at least partially.
2019-05-27 17:18:14 +02:00
let mut late_link_args = LinkArgs::new();
let late_link_args_dynamic = LinkArgs::new();
let late_link_args_static = LinkArgs::new();
2020-08-13 12:27:13 +02:00
let mingw_libs = vec![
//"-lwinstorecompat".to_string(),
//"-lmingwex".to_string(),
//"-lwinstorecompat".to_string(),
"-lwinstorecompat".to_string(),
"-lruntimeobject".to_string(),
"-lsynchronization".to_string(),
"-lvcruntime140_app".to_string(),
"-lucrt".to_string(),
"-lwindowsapp".to_string(),
"-lmingwex".to_string(),
"-lmingw32".to_string(),
];
late_link_args.insert(LinkerFlavor::Gcc, mingw_libs.clone());
late_link_args.insert(LinkerFlavor::Lld(LldFlavor::Ld), mingw_libs);
2019-05-27 17:18:14 +02:00
TargetOptions {
abi: "uwp".to_string(),
vendor: "uwp".to_string(),
2019-05-27 17:18:14 +02:00
executables: false,
limit_rdylib_exports: false,
2019-05-27 17:18:14 +02:00
late_link_args,
late_link_args_dynamic,
late_link_args_static,
2019-05-27 17:18:14 +02:00
..base
2019-05-27 17:18:14 +02:00
}
}