The smart build command now saves the build command in a file smart-build.log. This way
[charm.git] / smart-build.pl
index 31d35d90eb3f27f966265b121b5d82b6aa2412b3..e8d2d8acb96789c8ae855bef8ec1e477d43debe8 100755 (executable)
@@ -381,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);