Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 6306:2a819543cc45
Warnings for windows build if there is no SDK
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Thu, 30 Aug 2012 15:33:08 +0200 |
parents | b0fc02623974 |
children | 0a0d0dfd83bc |
comparison
equal
deleted
inserted
replaced
6301:4535a87e8bf8 | 6306:2a819543cc45 |
---|---|
355 newLine = os.linesep | 355 newLine = os.linesep |
356 STARTTOKEN = 'RUNINDEBUGSHELL_STARTSEQUENCE' | 356 STARTTOKEN = 'RUNINDEBUGSHELL_STARTSEQUENCE' |
357 ENDTOKEN = 'RUNINDEBUGSHELL_ENDSEQUENCE' | 357 ENDTOKEN = 'RUNINDEBUGSHELL_ENDSEQUENCE' |
358 | 358 |
359 winSDK = mx.get_env('WIN_SDK', 'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\') | 359 winSDK = mx.get_env('WIN_SDK', 'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\') |
360 | |
361 if not exists(winSDK): | |
362 mx.abort("Could not find Windows SDK : '" + winSDK + "' does not exist") | |
363 | |
364 if not exists(join(winSDK, 'Bin', 'SetEnv.cmd')): | |
365 mx.abort("Invalid Windows SDK path (" + winSDK + ") : could not find Bin/SetEnv.cmd (you can use the WIN_SDK environment variable to specify an other path)") | |
360 | 366 |
361 p = subprocess.Popen('cmd.exe /E:ON /V:ON /K ""' + winSDK + '/Bin/SetEnv.cmd" & echo ' + STARTTOKEN + '"', \ | 367 p = subprocess.Popen('cmd.exe /E:ON /V:ON /K ""' + winSDK + '/Bin/SetEnv.cmd" & echo ' + STARTTOKEN + '"', \ |
362 shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, creationflags=subprocess.CREATE_NEW_PROCESS_GROUP) | 368 shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, creationflags=subprocess.CREATE_NEW_PROCESS_GROUP) |
363 stdout = p.stdout | 369 stdout = p.stdout |
364 stdin = p.stdin | 370 stdin = p.stdin |