[compiler-rt] d8e32d5 - [NFC][sanitizer] Don't build unneded stuff for symbolizer

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 14 14:24:57 PDT 2023


Author: Vitaly Buka
Date: 2023-08-14T14:24:04-07:00
New Revision: d8e32d5738ff3692dc572419c0e2fd3ee697fae7

URL: https://github.com/llvm/llvm-project/commit/d8e32d5738ff3692dc572419c0e2fd3ee697fae7
DIFF: https://github.com/llvm/llvm-project/commit/d8e32d5738ff3692dc572419c0e2fd3ee697fae7.diff

LOG: [NFC][sanitizer] Don't build unneded stuff for symbolizer

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh b/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
index 8356856861006f..a260f21d5291f9 100755
--- a/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
+++ b/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
@@ -47,6 +47,7 @@ ZLIB_SRC=$(readlink -f $ZLIB_SRC)
 CLANG="${CLANG:-`which clang`}"
 CLANG_DIR=$(readlink -f $(dirname "$CLANG"))
 
+rm -rf symbolizer
 BUILD_DIR=$(readlink -f ./symbolizer)
 mkdir -p $BUILD_DIR
 cd $BUILD_DIR
@@ -104,6 +105,8 @@ if [[ ! -d ${LIBCXX_BUILD} ]]; then
     -DLIBCXX_ENABLE_EXCEPTIONS=OFF \
     -DLIBCXX_ENABLE_RTTI=OFF \
     -DCMAKE_SHARED_LINKER_FLAGS="$LINKFLAGS" \
+    -DLIBCXX_ENABLE_SHARED=OFF \
+    -DLIBCXXABI_ENABLE_SHARED=OFF \
   $LLVM_SRC/../runtimes
 fi
 cd ${LIBCXX_BUILD}
@@ -126,6 +129,7 @@ if [[ ! -d ${LLVM_BUILD} ]]; then
     -DCMAKE_EXE_LINKER_FLAGS="$LINKFLAGS -stdlib=libc++ -L${LIBCXX_BUILD}/lib" \
     -DLLVM_TABLEGEN=$TBLGEN \
     -DLLVM_ENABLE_ZLIB=ON \
+    -DLLVM_ENABLE_ZSTD=OFF \
     -DLLVM_ENABLE_TERMINFO=OFF \
     -DLLVM_ENABLE_THREADS=OFF \
   $LLVM_SRC


        


More information about the llvm-commits mailing list