mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
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:
parent
ec7c4ad53f
commit
c4cbea22ab
10
SConstruct
10
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user