diff --git a/SConstruct b/SConstruct index 988ad05131..23d0f474fb 100644 --- a/SConstruct +++ b/SConstruct @@ -83,7 +83,7 @@ if sys.platform == 'darwin': lib_paths = include_paths # handle command line options -vars = Variables('custom.py') +vars = Variables('args.cache') vars.AddVariables( BoolVariable('verbose', 'Set for compilation line', False), BoolVariable('debug', 'Set for debug build', False), @@ -95,9 +95,6 @@ vars.AddVariables( ) - -#compileFlags += [ '-W' + warning for warning in warnings ] - env = Environment( CC = 'gcc', CXX = 'g++', @@ -116,6 +113,8 @@ env = Environment( VERSION = version, ) +vars.Save('args.cache', env) + # verbose compile if not env['verbose']: env['CCCOMSTR'] = "Compiling $TARGET"