comparison mx/commands.py @ 4407:3b776fb6ffd9

Removed code for updating graal_path.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 29 Jan 2012 02:13:31 +0100
parents b5c12b21879c
children 648a7873cea2
comparison
equal deleted inserted replaced
4406:961895157a38 4407:3b776fb6ffd9
328 328
329 def filterXusage(line): 329 def filterXusage(line):
330 if not 'Xusage.txt' in line: 330 if not 'Xusage.txt' in line:
331 sys.stderr.write(line + os.linesep) 331 sys.stderr.write(line + os.linesep)
332 332
333 # Update graal_paths.hpp
334 out = StringIO.StringIO()
335 out.write(_copyrightTemplate.format(time.strftime('%Y')))
336 for p in mx.project('com.oracle.max.graal.hotspot').all_deps([], False):
337 out.write(' prepend_to_graal_classpath(scp_compiler, graal_dir, "' + p.name + '");\n')
338 graalPaths = join(_graal_home, 'src', 'share', 'vm', 'graal', 'graal_paths.hpp')
339 assert exists(graalPaths), 'File does not exist: ' + graalPaths
340 mx.update_file(graalPaths, out.getvalue())
341 out.close()
342
343 if platform.system() == 'Windows': 333 if platform.system() == 'Windows':
344 compilelogfile = _graal_home + '/graalCompile.log' 334 compilelogfile = _graal_home + '/graalCompile.log'
345 mksHome = mx.get_env('MKS_HOME', 'C:\\cygwin\\bin') 335 mksHome = mx.get_env('MKS_HOME', 'C:\\cygwin\\bin')
346 336
347 _runInDebugShell('msbuild ' + _graal_home + r'\build\vs-amd64\jvm.vcproj /p:Configuration=compiler1_product /target:clean', _graal_home) 337 _runInDebugShell('msbuild ' + _graal_home + r'\build\vs-amd64\jvm.vcproj /p:Configuration=compiler1_product /target:clean', _graal_home)