Merge pull request #2 from bentley/cxxtest

testrunner: respect environment-defined CXX (like other gambatte parts do).
This commit is contained in:
sinamas 2013-06-01 07:43:58 -07:00
commit eb746674af

View File

@ -1,11 +1,15 @@
global_cflags = ARGUMENTS.get('CFLAGS', '-Wall -Wextra -O2 -g')
global_cxxflags = ARGUMENTS.get('CXXFLAGS', global_cflags + ' -fno-exceptions -fno-rtti')
global_defines = ' -DHAVE_STDINT_H'
vars = Variables()
vars.Add('CC')
vars.Add('CXX')
env = Environment(CPPPATH = ['.', '../libgambatte/include'],
CFLAGS = global_cflags + global_defines,
CXXFLAGS = global_cxxflags + global_defines,
LIBS = 'm')
LIBS = 'm',
variables = vars)
sourceFiles = Split('''
testrunner.cpp