Skip to content

Commit

Permalink
Add arm64e ABI support. (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy authored Jul 22, 2020
1 parent 01f103f commit 369eeac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,9 @@ impl Build {
if target.contains("x86_64") {
cmd.args.push("-arch".into());
cmd.args.push("x86_64".into());
} else if target.contains("arm64e") {
cmd.args.push("-arch".into());
cmd.args.push("arm64e".into());
} else if target.contains("aarch64") {
cmd.args.push("-arch".into());
cmd.args.push("arm64".into());
Expand Down Expand Up @@ -1852,6 +1855,7 @@ impl Build {
let arch = match arch {
"arm" | "armv7" | "thumbv7" => ArchSpec::Device("armv7"),
"armv7s" | "thumbv7s" => ArchSpec::Device("armv7s"),
"arm64e" => ArchSpec::Device("arm64e"),
"arm64" | "aarch64" => ArchSpec::Device("arm64"),
"i386" | "i686" => ArchSpec::Simulator("-m32"),
"x86_64" => ArchSpec::Simulator("-m64"),
Expand Down

0 comments on commit 369eeac

Please sign in to comment.