diff --git a/buildbot/bootstrap.pl b/buildbot/bootstrap.pl index a17fa7d..676f3b0 100644 --- a/buildbot/bootstrap.pl +++ b/buildbot/bootstrap.pl @@ -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) { diff --git a/configure.py b/configure.py new file mode 100644 index 0000000..f0f2aa0 --- /dev/null +++ b/configure.py @@ -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])