added scons CC= and CXX= options

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1350 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-11-30 22:05:43 +00:00
parent ec7c4ad53f
commit c4cbea22ab

View file

@ -100,12 +100,12 @@ vars.AddVariables(
EnumVariable('flavor', 'Choose a build flavor', 'release',
allowed_values = ('release', 'devel', 'debug'),
ignorecase = 2
)
),
('CC', 'The c compiler', 'gcc'),
('CXX', 'The c++ compiler', 'g++'),
)
env = Environment(
CC = 'gcc',
CXX = 'g++',
CPPPATH = include_paths,
LIBPATH = lib_paths,
variables = vars,
@ -157,6 +157,10 @@ if env['lint']:
# add the warnings to the compile flags
compileFlags += [ '-W' + warning for warning in warnings ]
# Handle the compilers
CC = env['CC'],
CXX = env['CXX'],
env['CCFLAGS'] = compileFlags
env['CXXFLAGS'] = compileFlags + [ '-fvisibility-inlines-hidden' ]
env['CPPDEFINES'] = cppDefines