Lit: Introduce an environment variable, $LIT_PRESERVES_TMP, to preserve TMP (and...
[oota-llvm.git] / utils / release / test-release.sh
index 7aafc6d680fd243ed31eb3e3523f10da5dad5e37..6c17b467211d550a9d3223b61ea7529a320c9b92 100755 (executable)
@@ -18,7 +18,7 @@ else
     MAKE=make
 fi
 
-projects="llvm cfe dragonegg test-suite"
+projects="llvm cfe dragonegg compiler-rt libcxx test-suite clang-tools-extra"
 
 # Base SVN URL for the sources.
 Base_url="http://llvm.org/svn/llvm-project"
@@ -193,7 +193,7 @@ function check_valid_urls() {
     done
 }
 
-# Export sources to the the build directory.
+# Export sources to the build directory.
 function export_sources() {
     check_valid_urls
 
@@ -210,9 +210,19 @@ function export_sources() {
     if [ ! -h clang ]; then
         ln -s ../../cfe.src clang
     fi
+    cd $BuildDir/llvm.src/tools/clang/tools
+    if [ ! -h clang-tools-extra ]; then
+        ln -s ../../../../clang-tools-extra.src extra
+    fi
     cd $BuildDir/llvm.src/projects
-    if [ ! -h llvm-test ]; then
-        ln -s ../../test-suite.src llvm-test
+    if [ ! -h test-suite ]; then
+        ln -s ../../test-suite.src test-suite
+    fi
+    if [ ! -h compiler-rt ]; then
+        ln -s ../../compiler-rt.src compiler-rt
+    fi
+    if [ ! -h libcxx ]; then
+        ln -s ../../libcxx.src libcxx
     fi
     cd $BuildDir
 }
@@ -437,16 +447,14 @@ for Flavor in $Flavors ; do
         # Compare .o files between Phase2 and Phase3 and report which ones
         # differ.
         if [ "$do_compare" = "yes" ]; then
-            if [ "$Flavor" = "Release" -o "$Flavor" = "Release-64" ]; then
-                echo
-                echo "# Comparing Phase 2 and Phase 3 files"
-                for o in `find $llvmCore_phase2_objdir -name '*.o'` ; do
-                    p3=`echo $o | sed -e 's,Phase2,Phase3,'`
-                    if ! cmp --ignore-initial=16 $o $p3 > /dev/null 2>&1 ; then
-                        echo "file `basename $o` differs between phase 2 and phase 3"
-                    fi
-                done
-            fi
+            echo
+            echo "# Comparing Phase 2 and Phase 3 files"
+            for o in `find $llvmCore_phase2_objdir -name '*.o'` ; do
+                p3=`echo $o | sed -e 's,Phase2,Phase3,'`
+                if ! cmp --ignore-initial=16 $o $p3 > /dev/null 2>&1 ; then
+                    echo "file `basename $o` differs between phase 2 and phase 3"
+                fi
+            done
         fi
     fi
 
@@ -472,7 +480,7 @@ for Flavor in $Flavors ; do
         build_dragonegg 2 $Flavor $llvmCore_de_phase2_installdir $dragonegg_phase2_objdir
 
         ########################################################################
-        # Phase 3: Build llvmCore with newly built clang from phase 2.
+        # Phase 3: Build llvmCore with newly built dragonegg from phase 2.
         c_compiler="$gcc_compiler -fplugin=$dragonegg_phase2_objdir/dragonegg.so"
         cxx_compiler="$gxx_compiler -fplugin=$dragonegg_phase2_objdir/dragonegg.so"
         echo "# Phase 3: Building llvmCore with dragonegg"