diff options
| author | Rémi Verschelde | 2017-07-25 20:44:16 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2017-07-25 20:44:44 +0200 |
| commit | 9f768cb51941638cf6e4a595c1d29354ccf1289d (patch) | |
| tree | 110743f622307e89a8ec186d0741cbcaa0d439e3 /platform/windows/detect.py | |
| parent | 4fc60d41767de0e29bc67e68d65ae0d4235e7a06 (diff) | |
| download | godot-9f768cb51941638cf6e4a595c1d29354ccf1289d.tar.gz godot-9f768cb51941638cf6e4a595c1d29354ccf1289d.tar.zst godot-9f768cb51941638cf6e4a595c1d29354ccf1289d.zip | |
Diffstat (limited to 'platform/windows/detect.py')
| -rw-r--r-- | platform/windows/detect.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index a2bc5a11a..4d93b3f24 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -48,7 +48,7 @@ def can_build(): if (os.getenv("MINGW64_PREFIX")): mingw64 = os.getenv("MINGW64_PREFIX") - test = "gcc --version &>/dev/null" + test = "gcc --version > /dev/null 2>&1" if (os.system(mingw + test) == 0 or os.system(mingw64 + test) == 0 or os.system(mingw32 + test) == 0): return True @@ -65,7 +65,7 @@ def get_opts(): mingw32 = "i686-w64-mingw32-" mingw64 = "x86_64-w64-mingw32-" - if os.system(mingw32 + "gcc --version &>/dev/null") != 0: + if os.system(mingw32 + "gcc --version > /dev/null 2>&1") != 0: mingw32 = mingw if (os.getenv("MINGW32_PREFIX")): @@ -252,13 +252,6 @@ def configure(env): env.Append(LINKFLAGS=['-static']) mingw_prefix = env["mingw_prefix_64"] - nulstr = "" - - if (os.name == "posix"): - nulstr = ">/dev/null" - else: - nulstr = ">nul" - env["CC"] = mingw_prefix + "gcc" env['AS'] = mingw_prefix + "as" env['CXX'] = mingw_prefix + "g++" |
