Make SConstruct obey buildconfigurations and other minor changes
This commit is contained in:
parent
38fd46565e
commit
048c04d0f1
@ -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():
|
||||
|
@ -121,7 +121,6 @@ int main (int argc, char *argv[])
|
||||
name.append(".osrm");
|
||||
}
|
||||
|
||||
|
||||
ofstream fout;
|
||||
fout.open(name.c_str());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user