summaryrefslogtreecommitdiff
path: root/test/cfi
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-11-17 19:49:41 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-11-17 19:49:41 +0000
commit6d88545ede0693b8106c4eb0a6fcfa2fdbbbd157 (patch)
treefcf1ed4d79d7511a7498fd7e2ca54f084a45b9d6 /test/cfi
parent627dda342d31e7161d8e446e20f01a5687653b8b (diff)
Enable PDB generation with lld in asan and cfi tests on Windows.
PDB emission now works well enough that we can rely on it for these tests to pass. Differential Revision: https://reviews.llvm.org/D40188 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@318546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/cfi')
-rw-r--r--test/cfi/lit.cfg1
-rw-r--r--test/cfi/stats.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/test/cfi/lit.cfg b/test/cfi/lit.cfg
index 301d932ec..7dae9a0d5 100644
--- a/test/cfi/lit.cfg
+++ b/test/cfi/lit.cfg
@@ -32,6 +32,7 @@ if config.lto_supported:
config.substitutions.append((r"%clangxx_cfi_diag ", clang_cfi + cxx + non_dso + diag))
config.substitutions.append((r"%clangxx_cfi_dso ", clang_cfi + cxx + dso))
config.substitutions.append((r"%clangxx_cfi_dso_diag ", clang_cfi + cxx + dso + diag))
+ config.substitutions.append((r"%debug_info_flags", ' '.join(config.debug_info_flags)))
else:
config.unsupported = True
diff --git a/test/cfi/stats.cpp b/test/cfi/stats.cpp
index 56cc2dd51..ca6b3bf0d 100644
--- a/test/cfi/stats.cpp
+++ b/test/cfi/stats.cpp
@@ -1,4 +1,4 @@
-// RUN: %clangxx_cfi -g -fsanitize-stats -o %t %s
+// RUN: %clangxx_cfi %debug_info_flags -fsanitize-stats -o %t %s
// RUN: env SANITIZER_STATS_PATH=%t.stats %run %t
// RUN: sanstats %t.stats | FileCheck %s