[zorg] r370238 - [sanitizer] Always clobber if unexpected svn/git checkout exists

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 11:09:55 PDT 2019


Author: vitalybuka
Date: Wed Aug 28 11:09:54 2019
New Revision: 370238

URL: http://llvm.org/viewvc/llvm-project?rev=370238&view=rev
Log:
[sanitizer] Always clobber if unexpected svn/git checkout exists

Modified:
    zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh

Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh?rev=370238&r1=370237&r2=370238&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh Wed Aug 28 11:09:54 2019
@@ -11,6 +11,15 @@ function stage1_clobber {
 }
 
 function clobber {
+  # Clobber if USE_GIT was changed
+  local clobber_if_exists=llvm-project
+  if [[ "$USE_GIT" != "0" ]]; then
+    clobber_if_exists=llvm
+  fi
+  if [[ -d $clobber_if_exists ]]; then
+    BUILDBOT_CLOBBER=1
+  fi
+
   if [ "$BUILDBOT_CLOBBER" != "" ]; then
     echo @@@BUILD_STEP clobber@@@
     rm -rf svn_checkout llvm llvm-project llvm_build0 ${CLOBBER:-}




More information about the llvm-commits mailing list