diff --git a/SConstruct b/SConstruct index 053dd2a93..add1131ad 100644 --- a/SConstruct +++ b/SConstruct @@ -1158,6 +1158,11 @@ if not HELP_REQUESTED: # export env so it is available in Sconscript files Export('env') + # clear the '_CPPDEFFLAGS' variable + # for unknown reasons this variable puts -DNone + # in the g++ args prompting unnecessary recompiles + env['_CPPDEFFLAGS'] = None + if env['FAST']: # caching is 'auto' by default in SCons