Skip to content

Commit ed39b54

Browse files
committed
Fix node snapshot tool breaks encapsulation.
1 parent 04e31e4 commit ed39b54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graal-nodejs/mx.graal-nodejs/mx_graal_nodejs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,10 @@ def build(self):
330330
mx.run(['python3', join('tools', 'expand-js-modules.py'), outputDir] + [join('lib', m) for m in moduleSet] + macroFiles,
331331
cwd=_suite.dir)
332332
if not (hasattr(self.args, "jdt") and self.args.jdt and not self.args.force_javac):
333-
mx.run_java(['-cp', mx.classpath([snapshotToolDistribution]), '-Dpolyglot.engine.WarnInterpreterOnly=false',
333+
mx.run_java(['-cp', mx.classpath([snapshotToolDistribution]),
334+
'-Dpolyglot.engine.WarnInterpreterOnly=false',
335+
# The snapshot tool breaks the polyglot encapsulation
336+
'-Dpolyglotimpl.DisableClassPathIsolation=true',
334337
mx.distribution(snapshotToolDistribution).mainClass,
335338
'--binary', '--wrapped', '--outdir=' + outputDirBin, '--indir=' + outputDirBin] + ['--file=' + m for m in moduleSet],
336339
cwd=outputDirBin)

0 commit comments

Comments
 (0)