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'])
|
env.Append(LIBPATH = ['/opt/local/lib'])
|
||||||
else:
|
else:
|
||||||
env.Append(CPPPATH = ['/usr/include', '/usr/include/include', '/usr/include/libxml2/'])
|
env.Append(CPPPATH = ['/usr/include', '/usr/include/include', '/usr/include/libxml2/'])
|
||||||
|
if GetOption('buildconfiguration') == 'debug':
|
||||||
env.Append(CCFLAGS = ' -O3')
|
env.Append(CCFLAGS = ' -g3')
|
||||||
|
else:
|
||||||
|
env.Append(CCFLAGS = ' -O3')
|
||||||
#print "Compiling with: ", env['CXX']
|
#print "Compiling with: ", env['CXX']
|
||||||
conf = Configure(env)
|
conf = Configure(env)
|
||||||
if not conf.CheckCXX():
|
if not conf.CheckCXX():
|
||||||
|
@ -121,7 +121,6 @@ int main (int argc, char *argv[])
|
|||||||
name.append(".osrm");
|
name.append(".osrm");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ofstream fout;
|
ofstream fout;
|
||||||
fout.open(name.c_str());
|
fout.open(name.c_str());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user