From 0ca3661a57c4b5a091b626455f69d6d087c7c6dc Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Fri, 7 Feb 2014 21:19:36 +0100 Subject: Update to new lit configuration to support changes in LLVM3.4 --- test/lit.site.cfg.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/lit.site.cfg.in') diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 6fc3d49c..14ba94e6 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -22,4 +22,11 @@ config.have_selinux = True if @HAVE_SELINUX@ == 1 else False config.target_triple = "@TARGET_TRIPLE@" # Let the main config do the real work. -lit.load_config(config, "@KLEE_SOURCE_DIR@/test/lit.cfg") +try: + lit +except NameError: + # Use lit_config class + lit_config.load_config(config, "@KLEE_SOURCE_DIR@/test/lit.cfg") +else: + # Use old lit class + lit.load_config(config, "@KLEE_SOURCE_DIR@/test/lit.cfg") -- cgit 1.4.1