forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwindows_uwp_gnu.rs
More file actions
38 lines (34 loc) · 1.16 KB
/
windows_uwp_gnu.rs
File metadata and controls
38 lines (34 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use crate::spec::{base, Cc, LinkerFlavor, Lld, TargetOptions};
pub fn opts() -> TargetOptions {
let base = base::windows_gnu::opts();
let late_link_args = {
// FIXME: This should be updated for the exception machinery changes from #67502
// and inherit from `windows_gnu_base`, at least partially.
const MINGW_LIBS: &[&str] = &[
"-lwinstorecompat",
"-lruntimeobject",
"-lsynchronization",
"-lvcruntime140_app",
"-lucrt",
"-lwindowsapp",
"-lmingwex",
"-lmingw32",
];
TargetOptions::link_args_list(&[
(LinkerFlavor::Gnu(Cc::No, Lld::No), MINGW_LIBS),
(LinkerFlavor::Gnu(Cc::Yes, Lld::No), MINGW_LIBS),
])
};
// Reset the flags back to empty until the FIXME above is addressed.
let late_link_args_dynamic = Default::default();
let late_link_args_static = Default::default();
TargetOptions {
abi: "uwp".into(),
vendor: "uwp".into(),
limit_rdylib_exports: false,
late_link_args,
late_link_args_dynamic,
late_link_args_static,
..base
}
}