Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/lit.site.cfg.py.in
Show All 37 Lines | |||||
config.have_libxar = @HAVE_LIBXAR@ | config.have_libxar = @HAVE_LIBXAR@ | ||||
config.have_dia_sdk = @LLVM_ENABLE_DIA_SDK@ | config.have_dia_sdk = @LLVM_ENABLE_DIA_SDK@ | ||||
config.enable_ffi = @LLVM_ENABLE_FFI@ | config.enable_ffi = @LLVM_ENABLE_FFI@ | ||||
config.build_shared_libs = @BUILD_SHARED_LIBS@ | config.build_shared_libs = @BUILD_SHARED_LIBS@ | ||||
config.link_llvm_dylib = @LLVM_LINK_LLVM_DYLIB@ | config.link_llvm_dylib = @LLVM_LINK_LLVM_DYLIB@ | ||||
config.llvm_libxml2_enabled = "@LLVM_LIBXML2_ENABLED@" | config.llvm_libxml2_enabled = "@LLVM_LIBXML2_ENABLED@" | ||||
config.llvm_host_triple = '@LLVM_HOST_TRIPLE@' | config.llvm_host_triple = '@LLVM_HOST_TRIPLE@' | ||||
config.host_arch = "@HOST_ARCH@" | config.host_arch = "@HOST_ARCH@" | ||||
config.asan_shadow_scale = "@LLVM_ASAN_SHADOW_SCALE@" | |||||
config.asan_test_shadow_scale = "@LLVM_ASAN_TEST_SHADOW_SCALE@" | |||||
# Support substitution of the tools_dir with user parameters. This is | # Support substitution of the tools_dir with user parameters. This is | ||||
# used when we can't determine the tool dir at configuration time. | # used when we can't determine the tool dir at configuration time. | ||||
try: | try: | ||||
config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params | config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params | ||||
config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params | config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params | ||||
except KeyError: | except KeyError: | ||||
e = sys.exc_info()[1] | e = sys.exc_info()[1] | ||||
key, = e.args | key, = e.args | ||||
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) | lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) | ||||
@LIT_SITE_CFG_IN_FOOTER@ | @LIT_SITE_CFG_IN_FOOTER@ | ||||
# Let the main config do the real work. | # Let the main config do the real work. | ||||
lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg.py") | lit_config.load_config(config, "@LLVM_SOURCE_DIR@/test/lit.cfg.py") |