summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2019-02-22 15:41:31 +0100
committermarxin <mliska@suse.cz>2019-02-23 09:17:11 +0100
commit0d2a105e6b6ff5d28daeed140faa0b2c3f66254a (patch)
tree8a7d86b17a398dbc71632467c33f0d5b0d56cd27 /SConstruct
parent4f697f73a5ac567c1dc22ce44a7fab98f619dfe3 (diff)
Come up with use_gcc.
Add new method. Fix wrong version condition for -fpie.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 3734268cae..fd266b3fa0 100644
--- a/SConstruct
+++ b/SConstruct
@@ -338,7 +338,7 @@ if selected_platform in platform_list:
disable_nonessential_warnings = ['-Wno-sign-compare']
shadow_local_warning = []
- if 'gcc' in os.path.basename(env["CC"]):
+ if methods.use_gcc(env):
version = methods.get_compiler_version(env)
if version != None and version[0] >= '7':
shadow_local_warning = ['-Wshadow-local']