comparison mx/mx_graal.py @ 17014:6a30738791f7

mx: add helper for determine jli location
author Bernhard Urban <bernhard.urban@jku.at>
date Tue, 02 Sep 2014 14:46:50 +0200
parents ad10671d1bbd
children ffddcdca8e74
comparison
equal deleted inserted replaced
17013:0b2675391d01 17014:6a30738791f7
354 if platform.system() == 'Darwin': 354 if platform.system() == 'Darwin':
355 return join(jdk, 'jre', 'lib') 355 return join(jdk, 'jre', 'lib')
356 if platform.system() == 'Windows': 356 if platform.system() == 'Windows':
357 return join(jdk, 'jre', 'bin') 357 return join(jdk, 'jre', 'bin')
358 return join(jdk, 'jre', 'lib', mx.get_arch()) 358 return join(jdk, 'jre', 'lib', mx.get_arch())
359
360 def _vmJliLibDirs(jdk):
361 """
362 Get the directories within a JDK where the jli library designates to.
363 """
364 if platform.system() == 'Darwin':
365 return [join(jdk, 'jre', 'lib', 'jli')]
366 if platform.system() == 'Windows':
367 return [join(jdk, 'jre', 'bin'), join(jdk, 'bin')]
368 return [join(jdk, 'jre', 'lib', mx.get_arch(), 'jli'), join(jdk, 'lib', mx.get_arch(), 'jli')]
359 369
360 def _vmCfgInJdk(jdk): 370 def _vmCfgInJdk(jdk):
361 """ 371 """
362 Get the jvm.cfg file. 372 Get the jvm.cfg file.
363 """ 373 """