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

Commit 2f81fa7

Browse files
Merge pull request #324 from google/correct-embedded-resources
Adjust the `IncludeResources` flags for the native-image build
2 parents 82c4854 + 25155df commit 2f81fa7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build-scripts/graal.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ const NATIVE_IMAGE_BUILD_ARGS = [
4242
'-H:+AllowIncompleteClasspath',
4343
`-H:ReflectionConfigurationFiles=${path.resolve(__dirname, 'reflection-config.json')}`,
4444
'-H:IncludeResources=externs\.zip',
45-
'-H:IncludeResources=com\/google\/javascript\/.*\.js',
46-
'-H:IncludeResources=com\/google\/javascript\/.*\.txt',
47-
'-H:IncludeResources=com\/google\/javascript\/.*\.typedast',
45+
'-H:IncludeResources=.*\.typedast',
46+
'-H:IncludeResources=com/google/javascript/.*\.js',
47+
'-H:IncludeResources=com/google/javascript/.*\.txt',
48+
'-H:IncludeResources=lib/.*\.js',
49+
'-H:IncludeResources=META-INF/.*\.txt',
4850
'-H:+ReportExceptionStackTraces',
51+
// '-H:+GenerateEmbeddedResourcesFile', // Available on Graal JDK 24 and newer
4952
'--report-unsupported-elements-at-runtime',
5053
'--initialize-at-build-time',
5154
'--color=always',

0 commit comments

Comments
 (0)