From 0d2a105e6b6ff5d28daeed140faa0b2c3f66254a Mon Sep 17 00:00:00 2001 From: marxin Date: Fri, 22 Feb 2019 15:41:31 +0100 Subject: Come up with use_gcc. Add new method. Fix wrong version condition for -fpie. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SConstruct') 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'] -- cgit v1.2.3