Skip to content

Commit 61a89cf

Browse files
Fix dev release (#9556)
1 parent 524ed7e commit 61a89cf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/build-native.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ async function build() {
4343
}
4444
}
4545

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.
4847
function setupMacBuild() {
48+
// This forces Clang/LLVM to be used as a C compiler instead of GCC.
4949
process.env.CC = execSync('xcrun -f clang', {encoding: 'utf8'}).trim();
5050
process.env.CXX = execSync('xcrun -f clang++', {encoding: 'utf8'}).trim();
5151

@@ -54,4 +54,10 @@ function setupMacBuild() {
5454
}).trim();
5555
process.env.CFLAGS = `-isysroot ${sysRoot} -isystem ${sysRoot}`;
5656
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+
}
5763
}

0 commit comments

Comments
 (0)