Fix the buildbot

This commit is contained in:
Dr!fter 2013-09-01 13:02:53 -04:00
parent aa66ce6df6
commit 85598b898b
2 changed files with 13 additions and 3 deletions

View File

@ -66,11 +66,11 @@ if ($^O eq "linux") {
#configure AMBuild
if ($^O eq "linux") {
$result = `CC=gcc CXX=gcc python3 configure.py --enable-optimize`;
$result = `CC=gcc CXX=gcc python3 ../build/configure.py --enable-optimize`;
} elsif ($^O eq "darwin") {
$result = `CC=clang CXX=clang python3 configure.py --enable-optimize`;
$result = `CC=clang CXX=clang python3 ../build/configure.py --enable-optimize`;
} else {
$result = `C:\\Python31\\Python.exe configure.py --enable-optimize`;
$result = `C:\\Python31\\Python.exe ..\\build\\configure.py --enable-optimize`;
}
print "$result\n";
if ($? != 0) {

10
configure.py Normal file
View File

@ -0,0 +1,10 @@
# vim: set ts=2 sw=2 tw=99 noet:
import sys
import ambuild.runner as runner
run = runner.Runner()
run.options.add_option('--enable-debug', action='store_const', const='1', dest='debug',
help='Enable debugging symbols')
run.options.add_option('--enable-optimize', action='store_const', const='1', dest='opt',
help='Enable optimization')
run.Configure(sys.path[0])