Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/mx/commands.py Wed Aug 29 13:05:43 2012 +0200 +++ b/mx/commands.py Thu Aug 30 15:33:08 2012 +0200 @@ -357,6 +357,12 @@ ENDTOKEN = 'RUNINDEBUGSHELL_ENDSEQUENCE' winSDK = mx.get_env('WIN_SDK', 'C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\') + + if not exists(winSDK): + mx.abort("Could not find Windows SDK : '" + winSDK + "' does not exist") + + if not exists(join(winSDK, 'Bin', 'SetEnv.cmd')): + 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)") p = subprocess.Popen('cmd.exe /E:ON /V:ON /K ""' + winSDK + '/Bin/SetEnv.cmd" & echo ' + STARTTOKEN + '"', \ shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, creationflags=subprocess.CREATE_NEW_PROCESS_GROUP)