[compiler-rt] d9da5a8 - [symbolizer] Fix setup of optimization options
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 00:43:35 PDT 2023
Author: Vitaly Buka
Date: 2023-08-17T00:43:15-07:00
New Revision: d9da5a802b6a55d46bb9113932c174b1206abf49
URL: https://github.com/llvm/llvm-project/commit/d9da5a802b6a55d46bb9113932c174b1206abf49
DIFF: https://github.com/llvm/llvm-project/commit/d9da5a802b6a55d46bb9113932c174b1206abf49.diff
LOG: [symbolizer] Fix setup of optimization options
Added:
Modified:
compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
compiler-rt/lib/sanitizer_common/symbolizer/scripts/global_symbols.txt
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 4967e46fbebbd0..ec3f73ab21fb4b 100755
--- a/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
+++ b/compiler-rt/lib/sanitizer_common/symbolizer/scripts/build_symbolizer.sh
@@ -124,8 +124,8 @@ if [[ ! -f ${LLVM_BUILD}/build.ninja ]]; then
-DCMAKE_C_COMPILER=$CC \
-DCMAKE_CXX_COMPILER=$CXX \
-DLLVM_ENABLE_LIBCXX=ON \
- -DCMAKE_C_FLAGS="${LLVM_CFLAGS}" \
- -DCMAKE_CXX_FLAGS="${LLVM_CXXFLAGS}" \
+ -DCMAKE_C_FLAGS_RELEASE="${LLVM_CFLAGS}" \
+ -DCMAKE_CXX_FLAGS_RELEASE="${LLVM_CXXFLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="$LINKFLAGS -stdlib=libc++ -L${LIBCXX_BUILD}/lib" \
-DLLVM_TABLEGEN=$TBLGEN \
-DLLVM_INCLUDE_TESTS=OFF \
diff --git a/compiler-rt/lib/sanitizer_common/symbolizer/scripts/global_symbols.txt b/compiler-rt/lib/sanitizer_common/symbolizer/scripts/global_symbols.txt
index b602c90c78fd91..911d8fbbab2dde 100644
--- a/compiler-rt/lib/sanitizer_common/symbolizer/scripts/global_symbols.txt
+++ b/compiler-rt/lib/sanitizer_common/symbolizer/scripts/global_symbols.txt
@@ -11,6 +11,8 @@ _ZN11__sanitizer16internal_iserrorEjPi U
_ZN11__sanitizer16internal_iserrorEmPi U
_ZN11__sanitizer17internal_snprintfEPcjPKcz U
_ZN11__sanitizer17internal_snprintfEPcmPKcz U
+__ashldi3 U
+__ashrdi3 U
__ctype_b_loc U
__ctype_get_mb_cur_max U
__cxa_atexit U
@@ -36,6 +38,7 @@ __interceptor_realpath w
__isinf U
__isoc99_sscanf U
__isoc99_vsscanf U
+__lshrdi3 U
__moddi3 U
__sanitizer_internal_memcpy U
__sanitizer_internal_memmove U
More information about the llvm-commits
mailing list