Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit ffb596b

Browse files
Use the older mostly-static flag
1 parent f0f1597 commit ffb596b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-scripts/graal.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ switch (process.platform) {
6969
if (process.arch !== 'arm64') {
7070
NATIVE_IMAGE_BUILD_ARGS.unshift('--static', '--libc=musl');
7171
} else {
72-
NATIVE_IMAGE_BUILD_ARGS.unshift('--static-nolibc');
72+
// Newer Graal versions use the standard flag --static-nolibc
73+
NATIVE_IMAGE_BUILD_ARGS.unshift('-H:+StaticExecutableWithDynamicLibC');
7374
}
7475
break;
7576
case 'darwin': {
76-
NATIVE_IMAGE_BUILD_ARGS.unshift('--static-nolibc');
77+
// Newer Graal versions use the standard flag --static-nolibc
78+
NATIVE_IMAGE_BUILD_ARGS.unshift('-H:+StaticExecutableWithDynamicLibC');
7779
break;
7880
}
7981
}

0 commit comments

Comments
 (0)