[compiler-rt] 7c2e58f - [NFC][scudo] Produce debug info
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 30 00:22:11 PDT 2021
Author: Vitaly Buka
Date: 2021-03-30T00:22:00-07:00
New Revision: 7c2e58f250d583a005c766f453018fd24ce98eac
URL: https://github.com/llvm/llvm-project/commit/7c2e58f250d583a005c766f453018fd24ce98eac
DIFF: https://github.com/llvm/llvm-project/commit/7c2e58f250d583a005c766f453018fd24ce98eac.diff
LOG: [NFC][scudo] Produce debug info
Added:
Modified:
compiler-rt/lib/scudo/standalone/CMakeLists.txt
compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
index a8211606e87b..1dbe8c76ff68 100644
--- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt
+++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
@@ -10,6 +10,7 @@ set(SCUDO_CFLAGS)
list(APPEND SCUDO_CFLAGS
-Werror=conversion
-Wall
+ -g
-nostdinc++)
# Remove -stdlib= which is unused when passing -nostdinc++.
diff --git a/compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
index 78c297ae7e80..88b7227f4fcb 100644
--- a/compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
+++ b/compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
@@ -13,6 +13,7 @@ set(SCUDO_UNITTEST_CFLAGS
-I${COMPILER_RT_SOURCE_DIR}/lib/scudo/standalone/include
-DGTEST_HAS_RTTI=0
-DSCUDO_DEBUG=1
+ -g
# Extra flags for the C++ tests
# TODO(kostyak): find a way to make -fsized-deallocation work
-Wno-mismatched-new-delete)
More information about the llvm-commits
mailing list