[llvm-commits] [dragonegg] r98960 - /dragonegg/trunk/extras/do_self_strap
Duncan Sands
baldrick at free.fr
Fri Mar 19 08:25:24 PDT 2010
Author: baldrick
Date: Fri Mar 19 10:25:24 2010
New Revision: 98960
URL: http://llvm.org/viewvc/llvm-project?rev=98960&view=rev
Log:
Add an option for either using the GCC revision specified in
the dragonegg source, or the latest GCC revision.
Modified:
dragonegg/trunk/extras/do_self_strap
Modified: dragonegg/trunk/extras/do_self_strap
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/extras/do_self_strap?rev=98960&r1=98959&r2=98960&view=diff
==============================================================================
--- dragonegg/trunk/extras/do_self_strap (original)
+++ dragonegg/trunk/extras/do_self_strap Fri Mar 19 10:25:24 2010
@@ -21,6 +21,9 @@
STAGES="0 1 2" # Determines how many times we build GCC, LLVM and dragonegg
+#USE_KNOWN_GOOD_GCC_REVISION=0 # Use the most recent GCC revision
+USE_KNOWN_GOOD_GCC_REVISION=1 # Use a GCC revision known to be good
+
#USE_PER_STAGE_BUILD_DIRECTORIES=0 # Do not use per-stage build directories
USE_PER_STAGE_BUILD_DIRECTORIES=1 # Use per-stage build directories, helps
# when debugging self-host failures
@@ -82,14 +85,21 @@
# Check out or update the GCC source
+if (( USE_KNOWN_GOOD_GCC_REVISION )) ; then
+ GCC_REVISION=`cat $DRAGONEGG_SOURCE/gcc_revision_tested_with`
+ echo "Using GCC revision $GCC_REVISION"
+else
+ GCC_REVISION=head
+fi
+
if [ -a $GCC_SOURCE ] ; then
echo "Reverting any applied patches"
svn revert -R $GCC_SOURCE/gcc
echo "Updating GCC"
- svn update $GCC_SOURCE
+ svn update -r $GCC_REVISION $GCC_SOURCE
else
echo "Checking out GCC"
- svn co svn://gcc.gnu.org/svn/gcc/trunk $GCC_SOURCE
+ svn co -r $GCC_REVISION svn://gcc.gnu.org/svn/gcc/trunk $GCC_SOURCE
fi
More information about the llvm-commits
mailing list