X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2Fcheck-each-file;h=bd7633301dc296558d8a213ae4d297c7fd0e3bc2;hb=d40963c4065432ec7e47879d3ca665a54ee903b6;hp=667698deb83dcbfbce70b1e40b2a31ca1a525f79;hpb=4a6ca8d0963e2557470f90198575a3324da758bf;p=oota-llvm.git diff --git a/utils/check-each-file b/utils/check-each-file index 667698deb83..bd7633301dc 100755 --- a/utils/check-each-file +++ b/utils/check-each-file @@ -10,7 +10,7 @@ then linker=./link-$program echo "Building $program with llvm-native-gcc" rm -f $program - gmake -s $program CC=llvm-native-gcc + gmake -e $program CC=llvm-native-gcc CXX=llvm-native-gxx echo "Erasing $program and re-linking it" rm -f $program echo "rm -f $program" > $linker @@ -55,7 +55,7 @@ usage () { echo "" echo "OBJECTS-FILE is a text file containing the names of all the .o files" echo "PROGRAM is the name of the executable under test" - echo "(there must also exist a Makefile in the current directory which + echo "(there must also exist a Makefile in the current directory which" echo "has PROGRAM as a target)" echo "LINKER is the script that builds PROGRAM; try --make-linker-script" echo "to automatically generate it" @@ -113,8 +113,11 @@ files=`cat $checkfiles` echo "Recompiling everything with llvm-native-gcc" for f in $files do - rm -f $f && gmake $f CC=llvm-native-gcc + rm -f $f + gmake $f CC=llvm-native-gcc CXX=llvm-native-gxx done +rm -f $program +$linker if $checker then echo "Sorry, I can't help you, $program is OK when compiled with llvm-native-gcc"