1# -*- Python -*- 2 3import os 4 5## Autogenerated by llbuild configuration. 6# Do not edit! 7config.llbuild_src_root = "@LLBUILD_SRC_DIR@" 8config.llbuild_obj_root = "@LLBUILD_OBJ_DIR@" 9 10config.llbuild_tools_dir = "@LLBUILD_TOOLS_DIR@" 11config.llbuild_lib_dir = "@LLBUILD_LIBS_DIR@" 12 13# Tools found by the build system. 14config.filecheck_path = "@FILECHECK_EXECUTABLE@" 15config.swiftc_path = "@SWIFTC_EXECUTABLE@" 16config.swiftc_found = "@SWIFTC_FOUND@" 17config.osx_sysroot = "@CMAKE_OSX_SYSROOT@" 18 19# Support substitution of the tools_dir with user parameters. This is 20# used when we can't determine the tool dir at configuration time. 21try: 22 config.llbuild_tools_dir = config.llbuild_tools_dir % lit_config.params 23except KeyError: 24 e = sys.exc_info()[1] 25 key, = e.args 26 lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % ( 27 key, key)) 28 29# Let the main config do the real work. 30if config.test_exec_root is None: 31 config.test_exec_root = os.path.dirname(os.path.realpath(__file__)) 32lit_config.load_config(config, "@LLBUILD_SRC_DIR@/tests/lit.cfg") 33