Skip to content

Commit 25155df

Browse files
Adjust the IncludeResources flags for the native-image build
Required resources such as `runtime_libs.typedast` were missing.
1 parent 149c6de commit 25155df

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)