diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2015-06-19 01:52:55 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-06-19 01:52:55 +0000 |
commit | 271d42ab6a140f9bb897a49a6aa8627356890aa0 (patch) | |
tree | 58bd6c8432448d07f4f423d4b5aa9b2618212143 /test/cfi/lit.cfg | |
parent | 7346ebc566c8a9394569951cfaf308eadb200564 (diff) |
Add control flow integrity diagnosis function to UBSan runtime library.
Also includes execution tests for the feature.
Differential Revision: http://reviews.llvm.org/D10269
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@240111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/cfi/lit.cfg')
-rw-r--r-- | test/cfi/lit.cfg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/cfi/lit.cfg b/test/cfi/lit.cfg index 2343ff190..86cc4030b 100644 --- a/test/cfi/lit.cfg +++ b/test/cfi/lit.cfg @@ -9,7 +9,9 @@ clangxx = ' '.join([config.clang] + config.cxx_mode_flags) config.substitutions.append((r"%clangxx ", clangxx + ' ')) if config.lto_supported: - config.substitutions.append((r"%clangxx_cfi ", ' '.join(config.lto_launch + [clangxx] + config.lto_flags + ['-fsanitize=cfi ']))) + clangxx_cfi = ' '.join(config.lto_launch + [clangxx] + config.lto_flags + ['-fsanitize=cfi ']) + config.substitutions.append((r"%clangxx_cfi ", clangxx_cfi)) + config.substitutions.append((r"%clangxx_cfi_diag ", clangxx_cfi + '-fno-sanitize-trap=cfi -fsanitize-recover=cfi ')) else: config.unsupported = True |