mv compiler to compiler/
This commit is contained in:
parent
db534b3ac2
commit
9e5f7d5631
1686 changed files with 941 additions and 1051 deletions
36
compiler/rustc_target/src/spec/windows_uwp_gnu_base.rs
Normal file
36
compiler/rustc_target/src/spec/windows_uwp_gnu_base.rs
Normal file
|
@ -0,0 +1,36 @@
|
|||
use crate::spec::{LinkArgs, LinkerFlavor, LldFlavor, TargetOptions};
|
||||
|
||||
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.
|
||||
let mut late_link_args = LinkArgs::new();
|
||||
let late_link_args_dynamic = LinkArgs::new();
|
||||
let late_link_args_static = LinkArgs::new();
|
||||
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.clone());
|
||||
|
||||
TargetOptions {
|
||||
executables: false,
|
||||
limit_rdylib_exports: false,
|
||||
late_link_args,
|
||||
late_link_args_dynamic,
|
||||
late_link_args_static,
|
||||
|
||||
..base
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue