Commit 61a89cf 1 parent 524ed7e commit 61a89cf Copy full SHA for 61a89cf
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ async function build() {
43
43
}
44
44
}
45
45
46
- // This forces Clang/LLVM to be used as a C compiler instead of GCC.
47
- // This is necessary for cross-compilation for Apple Silicon in GitHub Actions.
46
+ // This setup is necessary for cross-compilation for Apple Silicon in GitHub Actions.
48
47
function setupMacBuild ( ) {
48
+ // This forces Clang/LLVM to be used as a C compiler instead of GCC.
49
49
process . env . CC = execSync ( 'xcrun -f clang' , { encoding : 'utf8' } ) . trim ( ) ;
50
50
process . env . CXX = execSync ( 'xcrun -f clang++' , { encoding : 'utf8' } ) . trim ( ) ;
51
51
@@ -54,4 +54,10 @@ function setupMacBuild() {
54
54
} ) . trim ( ) ;
55
55
process . env . CFLAGS = `-isysroot ${ sysRoot } -isystem ${ sysRoot } ` ;
56
56
process . env . MACOSX_DEPLOYMENT_TARGET = '10.9' ;
57
+
58
+ if ( process . env . RUST_TARGET === 'aarch64-apple-darwin' ) {
59
+ // Prevents the "<jemalloc>: Unsupported system page size" error when
60
+ // requiring parcel-node-bindings.darwin-arm64.node
61
+ process . env . JEMALLOC_SYS_WITH_LG_PAGE = 14 ;
62
+ }
57
63
}
You can’t perform that action at this time.
0 commit comments