Skip to content
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

Added "uefi" as a windows type target #29

Merged
merged 2 commits into from
Apr 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added "uefi" as a windows type target
  • Loading branch information
dbartussek committed Mar 31, 2020
commit 22bdc10327942d38721d46732f56c3cc92ae0ad7
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ use std::ffi::OsString;
fn x86_triple(os: &str) -> (&'static str, &'static str) {
match os {
"darwin" | "ios" => ("-fmacho32", "-g"),
"windows" => ("-fwin32", "-g"),
"windows" | "uefi" => ("-fwin32", "-g"),
_ => ("-felf32", "-gdwarf"),
}
}

fn x86_64_triple(os: &str) -> (&'static str, &'static str) {
match os {
"darwin" | "ios" => ("-fmacho64", "-g"),
"windows" => ("-fwin64", "-g"),
"windows" | "uefi" => ("-fwin64", "-g"),
_ => ("-felf64", "-gdwarf")
}
}
Expand Down