diff options
author | Jose <jose@zeroc.com> | 2015-03-05 11:29:47 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-03-05 11:29:47 +0100 |
commit | bdba1b684ef18ea6137bb91f3257b278e72ba23b (patch) | |
tree | 451707c73404525dff969503981b0fa76655da0e /demoscript | |
parent | Slice/errorDetection fixes (diff) | |
download | ice-bdba1b684ef18ea6137bb91f3257b278e72ba23b.tar.bz2 ice-bdba1b684ef18ea6137bb91f3257b278e72ba23b.tar.xz ice-bdba1b684ef18ea6137bb91f3257b278e72ba23b.zip |
Mingw/Ruby build updates
Diffstat (limited to 'demoscript')
-rw-r--r-- | demoscript/Util.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py index 6f91e79fbb9..bd4e2317f20 100644 --- a/demoscript/Util.py +++ b/demoscript/Util.py @@ -249,6 +249,8 @@ def configurePaths(): sys.stdout.write("]\n") binDir = os.path.join(getIceDir("cpp"), "bin") + if isMINGW() and x64: + binDir = os.path.join(binDir, "x64") # Always add the bin directory to the PATH, it contains executable # which might not be in the compiler/arch bin sub-directory. @@ -369,6 +371,13 @@ def isBinDist(): def isWin32(): return sys.platform == "win32" +def isMINGW(): + if not isWin32(): + return False + # Ruby Installer DEVKIT sets the RI_DEVKIT environment variable, + # we check for this variable to detect the Ruby MINGW environment. + return "RI_DEVKIT" in os.environ + def isCompactFramework(): return isWin32() and ("COMPACT" in os.environ and os.environ["COMPACT"] == "yes") |