|
@@ -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)
|