Skip to content

Commit

Permalink
Update build script for apple sillicon
Browse files Browse the repository at this point in the history
  • Loading branch information
branchseer committed Jan 15, 2022
1 parent ff26a5e commit 6fe5db2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodejs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ enum TargetOS {
enum TargetArch {
X64,
X86,
Arm64,
}

#[derive(Debug, Copy, Clone)]
Expand Down Expand Up @@ -127,6 +128,7 @@ fn main() -> anyhow::Result<()> {
let arch = match env::var("CARGO_CFG_TARGET_ARCH")?.as_str() {
"x86" => Ok(TargetArch::X86),
"x86_64" => Ok(TargetArch::X64),
"aarch64" => Ok(TargetArch::Arm64),
other => Err(other.to_string()),
};
if let Ok(TargetOS::Win32) = os {
Expand Down

0 comments on commit 6fe5db2

Please sign in to comment.