From 39592635458921ea8fa88ec34870e9c8c517001a Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 19 Jun 2015 19:48:40 +0000 Subject: [PATCH] Add -flto to clang flags for cfi tests. llvm-svn: 240168 --- compiler-rt/test/cfi/lit.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/cfi/lit.cfg b/compiler-rt/test/cfi/lit.cfg index 86cc403..1fa5a1e 100644 --- a/compiler-rt/test/cfi/lit.cfg +++ b/compiler-rt/test/cfi/lit.cfg @@ -9,7 +9,7 @@ clangxx = ' '.join([config.clang] + config.cxx_mode_flags) config.substitutions.append((r"%clangxx ", clangxx + ' ')) if config.lto_supported: - clangxx_cfi = ' '.join(config.lto_launch + [clangxx] + config.lto_flags + ['-fsanitize=cfi ']) + clangxx_cfi = ' '.join(config.lto_launch + [clangxx] + config.lto_flags + ['-flto -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: -- 2.7.4