Disable console colors on buildbot.
2 # vim: set ts=2 sw=2 tw=99 noet:
9 my ($myself, $path) = fileparse($0);
14 #Go back above build dir
15 chdir(Build::PathFormat('../../..'));
18 our ($root) = getcwd();
22 if (!(-f 'OUTPUT/.ambuild2/graph')) {
24 mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
28 print "Attempting to reconfigure...\n";
29 if ($argn > 0 && $^O !~ /MSWin/) {
30 $result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py --enable-optimize`;
33 $result = `CC=gcc-4.4 CXX=gcc-4.4 python ../build/configure.py --enable-optimize`;
34 } elsif ($^O eq "darwin") {
35 $result = `CC=clang CXX=clang python ../build/configure.py --enable-optimize`;
37 $result = `C:\\Python27\\Python.exe ..\\build\\configure.py --enable-optimize`;
42 die('Could not configure!');
44 open(FILE, '>sentinel');
45 print FILE "this is nothing.\n";
51 my ($file, $time) = (@_);
55 return $mtime > $time;