From 284669181e4e8ec21bf021e7f240e8e0cfeb71aa Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 21 Sep 2008 15:55:27 +0000 Subject: [PATCH] Cache command line arguments given to scon in args.cache git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@598 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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"