SCons: Fix Python 3 support in GCC version check
This commit is contained in:
parent
ee08831a32
commit
04ea848116
|
@ -44,7 +44,7 @@ def configure(env):
|
|||
# Hack to prevent building this branch with GCC 6+, which trigger segfaults due to UB when dereferencing pointers in Object::cast_to
|
||||
# This is fixed in the master branch, for 2.1 we just prevent using too recent GCC versions.
|
||||
import subprocess
|
||||
gcc_major = subprocess.check_output(['gcc', '-dumpversion'])[0].split()[0]
|
||||
gcc_major = subprocess.check_output(['gcc', '-dumpversion']).decode('ascii').split('.')[0]
|
||||
if (int(gcc_major) > 5):
|
||||
print("Your configured compiler appears to be GCC %s, which triggers issues in release builds for this version of Godot (fixed in Godot 3.0+)." % gcc_major)
|
||||
print("You can use the Clang compiler instead with the `use_llvm=yes` option, or configure another compiler such as GCC 5 using the CC, CXX and LD flags.")
|
||||
|
|
|
@ -95,7 +95,7 @@ def configure(env):
|
|||
# Hack to prevent building this branch with GCC 6+, which trigger segfaults due to UB when dereferencing pointers in Object::cast_to
|
||||
# This is fixed in the master branch, for 2.1 we just prevent using too recent GCC versions.
|
||||
import subprocess
|
||||
gcc_major = subprocess.check_output(['gcc', '-dumpversion'])[0].split()[0]
|
||||
gcc_major = subprocess.check_output(['gcc', '-dumpversion']).decode('ascii').split('.')[0]
|
||||
if (int(gcc_major) > 5):
|
||||
print("Your configured compiler appears to be GCC %s, which triggers issues in release builds for this version of Godot (fixed in Godot 3.0+)." % gcc_major)
|
||||
print("You can use the Clang compiler instead with the `use_llvm=yes` option, or configure another compiler such as GCC 5 using the CC, CXX and LD flags.")
|
||||
|
|
Loading…
Reference in New Issue