# HG changeset patch # User Doug Simon # Date 1412862694 -7200 # Node ID 9c241dc74cfce6822de4dd7a05260ccabd5467da # Parent 9e5abd0e7916543203bf0f2d9201de9d8b877fc3 mx: specify jar of classes differently depending on whether Graal is hosted or not diff -r 9e5abd0e7916 -r 9c241dc74cfc mx/mx_graal.py --- a/mx/mx_graal.py Thu Oct 09 14:51:39 2014 +0200 +++ b/mx/mx_graal.py Thu Oct 09 15:51:34 2014 +0200 @@ -1370,13 +1370,15 @@ vmargs.append('-G:CompileTheWorldConfig=' + args.ctwopts) if args.jar: - jar = args.jar + jar = os.path.abspath(args.jar) else: jar = join(_jdk(installJars=False), 'jre', 'lib', 'rt.jar') - vmargs += ['-XX:+CompileTheWorld', '-Xbootclasspath/p:' + jar] + vmargs += ['-XX:+CompileTheWorld'] if _get_vm() == 'graal': - vmargs += ['-XX:+BootstrapGraal'] + vmargs += ['-XX:+BootstrapGraal', '-G:CompileTheWorldClasspath=' + jar] + else: + vmargs += ['-Xbootclasspath/p:' + jar] vm(vmargs) def _basic_gate_body(args, tasks):