Only run pretty-printer tests for builds with debug-info.
Reviewers: dblaikie
Reviewed By: dblaikie
Subscribers: tbosch, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D79897
GitOrigin-RevId: 104e38cf761e3de3fb7838863001dbf007e5328b
diff --git a/lit.cfg.py b/lit.cfg.py
index fb2f723..4c45b72 100644
--- a/lit.cfg.py
+++ b/lit.cfg.py
@@ -157,3 +157,6 @@
if apple_lldb_vers < 1000:
config.available_features.add('apple-lldb-pre-1000')
+llvm_config.feature_config([('--build-mode', {
+ 'Debug|RelWithDebInfo': 'debug-info'
+})])
diff --git a/llvm-prettyprinters/gdb/llvm-support.gdb b/llvm-prettyprinters/gdb/llvm-support.gdb
index fa1e2aa..cdd3388 100644
--- a/llvm-prettyprinters/gdb/llvm-support.gdb
+++ b/llvm-prettyprinters/gdb/llvm-support.gdb
@@ -1,4 +1,5 @@
# RUN: gdb -q -batch -n -iex 'source %llvm_src_root/utils/gdb-scripts/prettyprinters.py' -x %s %llvm_tools_dir/check-gdb-llvm-support | FileCheck %s --dump-input-on-failure
+# REQUIRES: debug-info
break main
run