From c4cbea22ab3a5b78af44fb3405be6ea7d20ff69c Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 30 Nov 2008 22:05:43 +0000 Subject: [PATCH] added scons CC= and CXX= options git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1350 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index 3c6f9563d6..d8957d2962 100644 --- a/SConstruct +++ b/SConstruct @@ -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