aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-02-18 13:31:52 +0000
committerlloyd <[email protected]>2011-02-18 13:31:52 +0000
commit3904cd1e08ca7f45d2eb85b29637b79674f57aae (patch)
treedd9872028e48413c131567a412082711d1aa8026 /configure.py
parent0d502a0a4eb8b51e1f809f4604c56753d0b117bb (diff)
Canonicalize Cygwin platform name. The platform module will apparently
produce things like cygwin_nt-5.1, at least in some circumstances.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 3053dea67..37cfbc39a 100755
--- a/configure.py
+++ b/configure.py
@@ -1059,6 +1059,10 @@ def main(argv = None):
if options.os == "java":
raise Exception("Jython detected: need --os and --cpu to set target")
+ if re.match('^cygwin_.*', options.os):
+ logging.debug("Converting '%s' to 'cygwin'", options.os)
+ options.os = 'cygwin'
+
options.base_dir = os.path.dirname(argv[0])
options.src_dir = os.path.join(options.base_dir, 'src')