diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-26 15:12:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 15:12:00 +0100 |
commit | 216d2ad31cb0e43d6b5a31f2dcad5fc528633808 (patch) | |
tree | 1a1d3106caa37eecfff5d26f587c237f0aacb1e0 /platform | |
parent | 3ef37f05c67db8732330dead4950225535e16bef (diff) | |
parent | c7dc5142b56b3f52ba9c2746eb4855fae68ed26e (diff) |
Merge pull request #36559 from akien-mga/scons-compiler-version-ints
SCons: Fix get_compiler_version() to return ints
Diffstat (limited to 'platform')
-rw-r--r-- | platform/x11/detect.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 9d5affcb3c..b5b7895da9 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -179,18 +179,10 @@ def configure(env): env.Append(CCFLAGS=['-pipe']) env.Append(LINKFLAGS=['-pipe']) - # Check for gcc version >= 6 before adding -no-pie - if using_gcc(env): - version = get_compiler_version(env) - if version != None and version[0] >= '6': - env.Append(CCFLAGS=['-fpie']) - env.Append(LINKFLAGS=['-no-pie']) - # Do the same for clang should be fine with Clang 4 and higher - if using_clang(env): - version = get_compiler_version(env) - if version != None and version[0] >= '4': - env.Append(CCFLAGS=['-fpie']) - env.Append(LINKFLAGS=['-no-pie']) + # -fpie and -no-pie is supported on GCC 6+ and Clang 4+, both below our + # minimal requirements. + env.Append(CCFLAGS=['-fpie']) + env.Append(LINKFLAGS=['-no-pie']) ## Dependencies |