diff options
| author | bruvzg | 2018-03-15 17:29:55 +0200 |
|---|---|---|
| committer | bruvzg | 2018-03-15 17:29:55 +0200 |
| commit | e337eecd1706d9d319df24b9d0f3ff00e72d6280 (patch) | |
| tree | aa07d3ee3d77b8000a3c17d879e10a7068267415 /platform/windows/detect.py | |
| parent | 6f8b79ea5f2a712413ffedf10b3478c11ec60ee0 (diff) | |
| download | godot-e337eecd1706d9d319df24b9d0f3ff00e72d6280.tar.gz godot-e337eecd1706d9d319df24b9d0f3ff00e72d6280.tar.zst godot-e337eecd1706d9d319df24b9d0f3ff00e72d6280.zip | |
Fix MinGW cross-build
Diffstat (limited to 'platform/windows/detect.py')
| -rw-r--r-- | platform/windows/detect.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 3cf1482a6..2ce55d98b 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"): |
