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
This commit is contained in:
nakeee 2008-09-21 15:55:27 +00:00
parent 369a6d2883
commit 284669181e
1 changed files with 3 additions and 4 deletions

View File

@ -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"