Skip to content

Commit 6fe5db2

Browse files
committed
Update build script for apple sillicon
1 parent ff26a5e commit 6fe5db2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nodejs/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ enum TargetOS {
2020
enum TargetArch {
2121
X64,
2222
X86,
23+
Arm64,
2324
}
2425

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

0 commit comments

Comments
 (0)