-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Add UWP MSVC targets #63155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UWP MSVC targets #63155
Changes from 1 commit
5e6619e
54e268c
6e4d023
3c6f6f0
e3d8b68
89044a9
c9da160
1581c43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,14 @@ pub fn target() -> TargetResult { | |
// FIXME: this shouldn't be panic=abort, it should be panic=unwind | ||
base.panic_strategy = PanicStrategy::Abort; | ||
|
||
let lib_root_path = env::var("VCToolsInstallDir").expect("VCToolsInstallDir not found in env"); | ||
let lib_root_path = env::var("VCToolsInstallDir") | ||
|
||
.expect("VCToolsInstallDir not found in env"); | ||
|
||
base.pre_link_args.get_mut(&LinkerFlavor::Msvc).unwrap() | ||
.push(format!("{}{}{}", "/LIBPATH:".to_string(), lib_root_path, "lib\\arm64\\store".to_string())); | ||
.push(format!("{}{}{}", | ||
"/LIBPATH:".to_string(), | ||
lib_root_path, | ||
"lib\\arm64\\store".to_string())); | ||
|
||
Ok(Target { | ||
llvm_target: "aarch64-pc-windows-msvc".to_string(), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ pub fn opts() -> TargetOptions { | |
|
||
.. Default::default() | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the background on this FIXME that causes it to exist? Does that belong in a comment or an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The AArch64 Windows backend didn't implement SEH unwinding when the aarch64-pc-windows-msvc target was first added, so I suspect this is the same as that. I haven't checked the LLVM backend recently to see if this works.