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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1.2 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".into(),
//"-lmingwex".into(),
//"-lwinstorecompat".into(),
"-lwinstorecompat".into(),
"-lruntimeobject".into(),
"-lsynchronization".into(),
"-lvcruntime140_app".into(),
"-lucrt".into(),
"-lwindowsapp".into(),
"-lmingwex".into(),
"-lmingw32".into(),
2020-08-13 12:27:13 +02:00
];
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".into(),
vendor: "uwp".into(),
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
}
}