[zorg] r370111 - [zorg] Switch sanitizer-x86_64-linux-fast to use git
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 14:30:47 PDT 2019
Author: vitalybuka
Date: Tue Aug 27 14:30:47 2019
New Revision: 370111
URL: http://llvm.org/viewvc/llvm-project?rev=370111&view=rev
Log:
[zorg] Switch sanitizer-x86_64-linux-fast to use git
Reviewers: eugenis
Differential Revision: https://reviews.llvm.org/D66829
Modified:
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_msan.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_ubsan.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_cmake.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fast.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fuzzer.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_mte.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_perf_asan.sh
zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_android.sh Tue Aug 27 14:30:47 2019
@@ -13,6 +13,8 @@ PLATFORM=`uname`
LOCAL_IPS=`hostname -I`
export PATH="/usr/local/bin:$PATH"
+USE_GIT=0
+
CHECK_LIBCXX=${CHECK_LIBCXX:-1}
CHECK_LLD=${CHECK_LLD:-1}
STAGE1_DIR=llvm_build0
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap.sh Tue Aug 27 14:30:47 2019
@@ -11,6 +11,8 @@ ROOT=`pwd`
PLATFORM=`uname`
export PATH="/usr/local/bin:$PATH"
+USE_GIT=0
+
CHECK_LIBCXX=${CHECK_LIBCXX:-1}
CHECK_LLD=${CHECK_LLD:-1}
STAGE1_DIR=llvm_build0
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_msan.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_msan.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_msan.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_msan.sh Tue Aug 27 14:30:47 2019
@@ -11,6 +11,8 @@ ROOT=`pwd`
PLATFORM=`uname`
export PATH="/usr/local/bin:$PATH"
+USE_GIT=0
+
CHECK_LIBCXX=${CHECK_LIBCXX:-1}
CHECK_LLD=${CHECK_LLD:-1}
STAGE1_DIR=llvm_build0
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_ubsan.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_ubsan.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_ubsan.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_bootstrap_ubsan.sh Tue Aug 27 14:30:47 2019
@@ -11,6 +11,8 @@ ROOT=`pwd`
PLATFORM=`uname`
export PATH="/usr/local/bin:$PATH"
+USE_GIT=0
+
CHECK_LIBCXX=${CHECK_LIBCXX:-1}
CHECK_LLD=${CHECK_LLD:-1}
STAGE1_DIR=llvm_build0
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_cmake.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_cmake.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_cmake.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_cmake.sh Tue Aug 27 14:30:47 2019
@@ -40,6 +40,8 @@ if [ -e /usr/include/plugin-api.h ]; the
CMAKE_COMMON_OPTIONS="${CMAKE_COMMON_OPTIONS} -DLLVM_BINUTILS_INCDIR=/usr/include"
fi
+USE_GIT=0
+
CHECK_LIBCXX=${CHECK_LIBCXX:-1}
CHECK_SYMBOLIZER=${CHECK_SYMBOLIZER:-$CHECK_LIBCXX}
CHECK_LLD=${CHECK_LLD:-1}
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fast.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fast.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fast.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fast.sh Tue Aug 27 14:30:47 2019
@@ -11,6 +11,8 @@ ROOT=`pwd`
PLATFORM=`uname`
export PATH="/usr/local/bin:$PATH"
+USE_GIT=1
+
CHECK_LIBCXX=${CHECK_LIBCXX:-1}
CHECK_LLD=${CHECK_LLD:-1}
STAGE1_DIR=llvm_build0
@@ -27,6 +29,7 @@ CMAKE_COMMON_OPTIONS="-GNinja -DCMAKE_BU
if [ "$BUILDBOT_CLOBBER" != "" ]; then
echo @@@BUILD_STEP clobber@@@
rm -rf llvm
+ rm -rf llvm-project
rm -rf ${STAGE1_DIR}
fi
@@ -37,7 +40,7 @@ build_stage1_clang_at_revison
CMAKE_COMMON_OPTIONS="$CMAKE_COMMON_OPTIONS -DLLVM_ENABLE_ASSERTIONS=ON"
echo @@@BUILD_STEP update@@@
-buildbot_update
+buildbot_update_git
# Stage 2 / Memory Sanitizer
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=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_functions.sh Tue Aug 27 14:30:47 2019
@@ -47,6 +47,10 @@ function get_sources {
function buildbot_update {
+ if [[ "$USE_GIT" != "0" ]]; then
+ buildbot_update_git
+ return
+ fi
if [[ -d "$BUILDBOT_MONO_REPO_PATH" ]]; then
BUILDBOT_REVISION="-"
else
@@ -173,7 +177,10 @@ function gclient_runhooks {
function build_stage1_clang {
mkdir -p ${STAGE1_DIR}
- cmake_stage1_options="${CMAKE_COMMON_OPTIONS}"
+ local cmake_stage1_options="${CMAKE_COMMON_OPTIONS}"
+ if [[ "$USE_GIT" != "0" ]]; then
+ cmake_stage1_options="${cmake_stage1_options} -DLLVM_ENABLE_PROJECTS='clang;compiler-rt;lld'"
+ fi
(cd ${STAGE1_DIR} && cmake ${cmake_stage1_options} $LLVM && \
ninja clang lld compiler-rt llvm-symbolizer)
}
@@ -187,7 +194,7 @@ function build_stage1_clang_at_revison {
echo @@@BUILD_STEP using pre-built stage1 clang at r$HOST_CLANG_REVISION@@@
else
echo @@@BUILD_STEP sync to r$HOST_CLANG_REVISION@@@
- (BUILDBOT_REVISION=$HOST_CLANG_REVISION buildbot_update)
+ BUILDBOT_REVISION=$HOST_CLANG_REVISION buildbot_update
echo @@@BUILD_STEP Clear ${STAGE1_DIR} ${STAGE1_CLOBBER}
rm -rf ${STAGE1_DIR} ${STAGE1_CLOBBER}
@@ -250,9 +257,14 @@ function build_stage2 {
"$sanitizer_name" != "ubsan" ]; then
echo @@@BUILD_STEP build libcxx/$sanitizer_name@@@
mkdir -p ${libcxx_build_dir}
+ local cmake_stage2_libcxx_options=
+ if [[ "$USE_GIT" != "0" ]]; then
+ cmake_stage2_libcxx_options="-DLLVM_ENABLE_PROJECTS='libcxx;libcxxabi'"
+ fi
(cd ${libcxx_build_dir} && \
cmake \
${cmake_stage2_common_options} \
+ ${cmake_stage2_libcxx_options} \
-DCMAKE_BUILD_TYPE=${build_type} \
-DLLVM_USE_SANITIZER=${llvm_use_sanitizer} \
$LLVM && \
@@ -273,8 +285,18 @@ function build_stage2 {
if [ "$CHECK_LLD" != "0" ]; then
extra_dir="lld"
fi
+ local cmake_stage2_clang_options=
+ if [[ "$USE_GIT" != "0" ]]; then
+ local projects=clang
+ if [[ "$CHECK_LLD" != "0" ]]; then
+ projects="${projects};lld"
+ fi
+ cmake_stage2_clang_options="-DLLVM_ENABLE_PROJECTS='${projects}'"
+ fi
(cd ${build_dir} && \
- cmake ${cmake_stage2_common_options} \
+ cmake \
+ ${cmake_stage2_common_options} \
+ ${cmake_stage2_clang_options} \
-DCMAKE_BUILD_TYPE=${build_type} \
-DLLVM_USE_SANITIZER=${llvm_use_sanitizer} \
${cmake_libcxx_flag} \
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fuzzer.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fuzzer.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fuzzer.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_fuzzer.sh Tue Aug 27 14:30:47 2019
@@ -11,6 +11,8 @@ ROOT=`pwd`
PLATFORM=`uname`
export PATH="/usr/local/bin:$PATH"
+USE_GIT=0
+
CHECK_LIBCXX=${CHECK_LIBCXX:-0}
CHECK_LLD=${CHECK_LLD:-1}
STAGE1_DIR=llvm_build0
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_mte.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_mte.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_mte.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_mte.sh Tue Aug 27 14:30:47 2019
@@ -11,6 +11,8 @@ ROOT=`pwd`
PLATFORM=`uname`
export PATH="/usr/local/bin:$PATH"
+USE_GIT=0
+
CHECK_LIBCXX=${CHECK_LIBCXX:-1}
CHECK_LLD=${CHECK_LLD:-1}
STAGE1_DIR=llvm_build0
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_perf_asan.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_perf_asan.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_perf_asan.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_perf_asan.sh Tue Aug 27 14:30:47 2019
@@ -11,6 +11,8 @@ ROOT=`pwd`
PLATFORM=`uname`
export PATH="/usr/local/bin:$PATH"
+USE_GIT=0
+
LLVM=$ROOT/llvm
CLANG_BUILD=$ROOT/clang_build
SPEC_DIRNAME=SPEC_CPU2006v1.2
Modified: zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh?rev=370111&r1=370110&r2=370111&view=diff
==============================================================================
--- zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh (original)
+++ zorg/trunk/zorg/buildbot/builders/sanitizers/buildbot_standard.sh Tue Aug 27 14:30:47 2019
@@ -25,6 +25,9 @@ fi
ROOT=`pwd`
PLATFORM=`uname`
MAKE_JOBS=${MAX_MAKE_JOBS:-$(nproc)}
+
+USE_GIT=0
+
CHECK_LIBCXX=${CHECK_LIBCXX:-1}
CHECK_LLD=${CHECK_LLD:-1}
More information about the llvm-commits
mailing list