summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2019-02-25 00:50:53 +0100
committerGitHub <noreply@github.com>2019-02-25 00:50:53 +0100
commitfc5792f2ea5c3fcd9de4d4200763313ab4052a8f (patch)
tree276ef20eaa1aac76426b00f4e3f317f2bf647c9e /SConstruct
parent3d5fc1bb38f8749e27b3f987becf2b92b878323b (diff)
parent0d2a105e6b6ff5d28daeed140faa0b2c3f66254a (diff)
downloadredot-engine-fc5792f2ea5c3fcd9de4d4200763313ab4052a8f.tar.gz
Merge pull request #26160 from marxin/come-up-with-use_gcc
Come up with use_gcc.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 8ecb17b4e7..df1be4bfd7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -339,7 +339,7 @@ if selected_platform in platform_list:
shadow_local_warning = []
all_plus_warnings = ['-Wwrite-strings']
- 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']