The smart build command now saves the build command in a file smart-build.log. This way
[charm.git] / smart-build.pl
index 566e418eff0009448b28a99f0c4f3e3d816c7e23..e8d2d8acb96789c8ae855bef8ec1e477d43debe8 100755 (executable)
@@ -47,10 +47,14 @@ if($cpu =~ m/i[0-9]86/){
 } elsif($cpu =~ m/powerpc/){
        print "Detected architecture ppc\n";
        $ppc = 1;
+} elsif($cpu =~ m/Power Mac/){
+  print "Detected architecture ppc\n";
+  $ppc = 1;
 }
 
 
 
+
 # Determine converse architecture
 # net, mpi, ...
 
@@ -377,6 +381,10 @@ if($j ne ""){
 
 $build_line = "./build $target $arch ${network_option_string} $compiler $smp $j ${compiler_flags}\n";
 
+open(BUILDLINE, ">smart-build.log");
+print BUILDLINE "Using the following build command:\n$build_line\n";
+close(BUILDLINE);
+
 if(-e "src/arch/$arch"){
        print "Building with: ${build_line}\n"; 
        system($build_line);