mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 20:54:28 +00: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',
|
EnumVariable('flavor', 'Choose a build flavor', 'release',
|
||||||
allowed_values = ('release', 'devel', 'debug'),
|
allowed_values = ('release', 'devel', 'debug'),
|
||||||
ignorecase = 2
|
ignorecase = 2
|
||||||
)
|
),
|
||||||
|
('CC', 'The c compiler', 'gcc'),
|
||||||
|
('CXX', 'The c++ compiler', 'g++'),
|
||||||
)
|
)
|
||||||
|
|
||||||
env = Environment(
|
env = Environment(
|
||||||
CC = 'gcc',
|
|
||||||
CXX = 'g++',
|
|
||||||
CPPPATH = include_paths,
|
CPPPATH = include_paths,
|
||||||
LIBPATH = lib_paths,
|
LIBPATH = lib_paths,
|
||||||
variables = vars,
|
variables = vars,
|
||||||
@ -157,6 +157,10 @@ if env['lint']:
|
|||||||
# add the warnings to the compile flags
|
# add the warnings to the compile flags
|
||||||
compileFlags += [ '-W' + warning for warning in warnings ]
|
compileFlags += [ '-W' + warning for warning in warnings ]
|
||||||
|
|
||||||
|
# Handle the compilers
|
||||||
|
CC = env['CC'],
|
||||||
|
CXX = env['CXX'],
|
||||||
|
|
||||||
env['CCFLAGS'] = compileFlags
|
env['CCFLAGS'] = compileFlags
|
||||||
env['CXXFLAGS'] = compileFlags + [ '-fvisibility-inlines-hidden' ]
|
env['CXXFLAGS'] = compileFlags + [ '-fvisibility-inlines-hidden' ]
|
||||||
env['CPPDEFINES'] = cppDefines
|
env['CPPDEFINES'] = cppDefines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user