summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2019-10-04 22:15:28 +0000
committerSterling Augustine <saugustine@google.com>2019-10-04 22:15:28 +0000
commitb3e3934347f284e6358c64db8a1acdfe8785b9c7 (patch)
tree3e8c358694a19695ccc188263b7fb3a8496a9944 /libcxx/test
parent68d01d9429019f7c62f3555a503f4ac04c466ab6 (diff)
downloadbcm5719-llvm-b3e3934347f284e6358c64db8a1acdfe8785b9c7.tar.gz
bcm5719-llvm-b3e3934347f284e6358c64db8a1acdfe8785b9c7.zip
Add an off-by-default option to enable testing for gdb pretty printers.
Summary: The current version of the pretty printers are not python3 compatible, so turn them off by default until sufficiently improved. Reviewers: MaskRay, tamur Subscribers: mgorny, christof, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68477 llvm-svn: 373796
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/CMakeLists.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/libcxx/test/CMakeLists.txt b/libcxx/test/CMakeLists.txt
index e6ef6284eca..81474511b58 100644
--- a/libcxx/test/CMakeLists.txt
+++ b/libcxx/test/CMakeLists.txt
@@ -60,12 +60,16 @@ if (NOT DEFINED LIBCXX_TEST_DEPS)
message(FATAL_ERROR "Expected LIBCXX_TEST_DEPS to be defined")
endif()
-find_program(LIBCXX_GDB gdb)
-if (LIBCXX_GDB)
- set(LIBCXX_GDB "${LIBCXX_GDB}")
- message(STATUS "gdb found: ${LIBCXX_GDB}")
-else()
- message(STATUS "gdb not found. Disabling dependent tests.")
+# Turn this on by default when the pretty printers are python3
+# compatible.
+if(LIBCXX_TEST_GDB_PRETTY_PRINTERS)
+ find_program(LIBCXX_GDB gdb)
+ if (LIBCXX_GDB)
+ set(LIBCXX_GDB "${LIBCXX_GDB}")
+ message(STATUS "gdb found: ${LIBCXX_GDB}")
+ else()
+ message(STATUS "gdb not found. Disabling dependent tests.")
+ endif()
endif()
if (LIBCXX_INCLUDE_TESTS)
OpenPOWER on IntegriCloud