Make SConstruct obey buildconfigurations and other minor changes

This commit is contained in:
Dennis Luxen
2010-07-30 17:41:36 +00:00
parent 38fd46565e
commit 048c04d0f1
2 changed files with 4 additions and 3 deletions
+4 -2
View File
@@ -29,8 +29,10 @@ else: #Mac OS X
env.Append(LIBPATH = ['/opt/local/lib'])
else:
env.Append(CPPPATH = ['/usr/include', '/usr/include/include', '/usr/include/libxml2/'])
env.Append(CCFLAGS = ' -O3')
if GetOption('buildconfiguration') == 'debug':
env.Append(CCFLAGS = ' -g3')
else:
env.Append(CCFLAGS = ' -O3')
#print "Compiling with: ", env['CXX']
conf = Configure(env)
if not conf.CheckCXX():