More Windows build fix.
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 #Create output folder if it doesn't exist.
26 if (-f 'OUTPUT/sentinel') {
27 my @s = stat('OUTPUT/sentinel');
29 my @files = ('build/pushbuild.txt', 'build/AMBuildScript', 'build/product.version');
31 for ($i = 0; $i <= $#files; $i++) {
32 if (IsNewer($files[$i], $mtime)) {
44 mkdir('OUTPUT') or die("Failed to create output folder: $!\n");
48 print "Attempting to reconfigure...\n";
49 if ($argn > 0 && $^O !~ /MSWin/) {
50 $result = `CC=$ARGV[0] CXX=$ARGV[0] python3 ../build/configure.py --enable-optimize`;
53 $result = `CC=gcc-4.4 CXX=gcc-4.4 python3 ../build/configure.py --enable-optimize`;
54 } elsif ($^O eq "darwin") {
55 $result = `CC=clang CXX=clang python3 ../build/configure.py --enable-optimize`;
57 $result = `C:\\Python32\\Python.exe ..\\build\\configure.py --enable-optimize`;
62 die("Could not configure: $!\n");
64 open(FILE, '>sentinel');
65 print FILE "this is nothing.\n";
71 my ($file, $time) = (@_);
75 return $mtime > $time;