From b288ad8e3627c25747ba68d81a70bfe111efaa16 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 18 Oct 2012 20:43:11 +0000 Subject: test: Add a lit config variable to check if LTO is enabled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166225 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/lit.cfg') diff --git a/test/lit.cfg b/test/lit.cfg index f24a854dc7a..9273cd7b930 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -245,6 +245,10 @@ else: if loadable_module: config.available_features.add('loadable_module') +# LTO +if config.lto_is_enabled == "1": + config.available_features.add('lto') + # llc knows whether he is compiled with -DNDEBUG. import subprocess try: -- cgit v1.2.3