summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-15 16:50:01 +0100
committerGitHub <noreply@github.com>2018-03-15 16:50:01 +0100
commita8147d0f8bc1960f6b3d14bf8f049a47e75847b1 (patch)
tree2974a88b1126c3c7d5d094ffe6aa40a050c18a84 /platform/windows
parentd2f929304b0190d1642c71a3165bd7b138f70507 (diff)
parente337eecd1706d9d319df24b9d0f3ff00e72d6280 (diff)
Merge pull request #17536 from bruvzg/fix_mingw_build
Fix MinGW cross-build
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/detect.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 3cf1482a65..2ce55d98be 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -320,8 +320,9 @@ def configure(env):
print("Configuring for Windows: target=%s, bits=%s" % (env['target'], env['bits']))
- env['ENV'] = os.environ # this makes build less repeatable, but simplifies some things
- env['ENV']['TMP'] = os.environ['TMP']
+ if (os.name == "nt"):
+ env['ENV'] = os.environ # this makes build less repeatable, but simplifies some things
+ env['ENV']['TMP'] = os.environ['TMP']
# First figure out which compiler, version, and target arch we're using
if os.getenv("VCINSTALLDIR"):