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

Commit 5288a10

Browse files
authored
Merge pull request #273 from google/dynamic-glibc
Support multiple libc versions by dynamically linking against libc
2 parents 8a48b97 + 22631f7 commit 5288a10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build-scripts/graal.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ const NATIVE_IMAGE_BUILD_ARGS = [
5656
path.resolve(process.cwd(), 'compiler.jar')
5757
];
5858

59+
if (process.platform !== 'darwin') {
60+
// MacOS does not support building statically linked images
61+
NATIVE_IMAGE_BUILD_ARGS.unshift('-H:+StaticExecutableWithDynamicLibC');
62+
}
63+
5964
runCommand(`native-image${process.platform === 'win32' ? '.cmd' : ''}`, NATIVE_IMAGE_BUILD_ARGS)
6065
.catch(e => {
6166
console.error(e);

0 commit comments

Comments
 (0)