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

Commit f4d8bc9

Browse files
Remove unused windows path arg replacement
1 parent b0e649a commit f4d8bc9

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

build-scripts/graal.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,17 @@ process.on('unhandledRejection', error => {
3434
process.exit(1);
3535
});
3636

37-
const windowsPathReplacer = (match) => {
38-
if (process.platform === 'win32') {
39-
// Escape the '|' character in a windows batch command
40-
// See https://stackoverflow.com/a/16018942/1211524
41-
if (match === '|') {
42-
return '^^^|';
43-
}
44-
return `^${match}`;
45-
}
46-
return '|';
47-
};
48-
4937
const NATIVE_IMAGE_BUILD_ARGS = [
5038
'-H:+ReportUnsupportedElementsAtRuntime',
5139
'-H:IncludeResourceBundles=org.kohsuke.args4j.Messages',
5240
'-H:IncludeResourceBundles=org.kohsuke.args4j.spi.Messages',
5341
'-H:IncludeResourceBundles=com.google.javascript.jscomp.parsing.ParserConfig',
5442
'-H:+AllowIncompleteClasspath',
5543
`-H:ReflectionConfigurationFiles=${path.resolve(__dirname, 'reflection-config.json')}`,
56-
'-H:IncludeResources=externs\.zip'.replace(/[\|\(\)]/g, windowsPathReplacer),
57-
'-H:IncludeResources=com\/google\/javascript\/.*\.js'.replace(/[\|\(\)]/g, windowsPathReplacer),
58-
'-H:IncludeResources=com\/google\/javascript\/.*\.txt'.replace(/[\|\(\)]/g, windowsPathReplacer),
59-
'-H:IncludeResources=com\/google\/javascript\/.*\.typedast'.replace(/[\|\(\)]/g, windowsPathReplacer),
44+
'-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',
6048
'-H:+ReportExceptionStackTraces',
6149
'--initialize-at-build-time',
6250
'--color=always',

0 commit comments

Comments
 (0)