[compiler-rt] r240168 - Add -flto to clang flags for cfi tests.

Alexey Samsonov vonosmas at gmail.com
Fri Jun 19 12:48:41 PDT 2015


Author: samsonov
Date: Fri Jun 19 14:48:40 2015
New Revision: 240168

URL: http://llvm.org/viewvc/llvm-project?rev=240168&view=rev
Log:
Add -flto to clang flags for cfi tests.

Modified:
    compiler-rt/trunk/test/cfi/lit.cfg

Modified: compiler-rt/trunk/test/cfi/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/cfi/lit.cfg?rev=240168&r1=240167&r2=240168&view=diff
==============================================================================
--- compiler-rt/trunk/test/cfi/lit.cfg (original)
+++ compiler-rt/trunk/test/cfi/lit.cfg Fri Jun 19 14:48:40 2015
@@ -9,7 +9,7 @@ clangxx = ' '.join([config.clang] + conf
 
 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:





More information about the llvm-commits mailing list