mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Use correct variable in gccdeps config
The global value gccdeps was appended to CFLAGS and CXXFLAGS instead of the actual flags tested against the compiler. This ignored modifications to the GCCDEPS_FLAGS environment variable and complicated adding support for additional compilers at the project level.
This commit is contained in:
parent
82679503eb
commit
4b905773ea
@ -197,7 +197,7 @@ def configure(conf):
|
||||
except Errors.ConfigurationError:
|
||||
pass
|
||||
else:
|
||||
conf.env.append_value('CFLAGS', gccdeps_flags)
|
||||
conf.env.append_value('CFLAGS', flags)
|
||||
conf.env.append_unique('ENABLE_GCCDEPS', 'c')
|
||||
|
||||
if conf.env.CXX_NAME in supported_compilers:
|
||||
@ -206,7 +206,7 @@ def configure(conf):
|
||||
except Errors.ConfigurationError:
|
||||
pass
|
||||
else:
|
||||
conf.env.append_value('CXXFLAGS', gccdeps_flags)
|
||||
conf.env.append_value('CXXFLAGS', flags)
|
||||
conf.env.append_unique('ENABLE_GCCDEPS', 'cxx')
|
||||
|
||||
def options(opt):
|
||||
|
Loading…
Reference in New Issue
Block a user