xref: /llvm-project/compiler-rt/test/fuzzer/lit.site.cfg.py.in (revision 0c0f6cfb7b9fab0ee69ef67ed95c194698c9d794)
1@LIT_SITE_CFG_IN_HEADER@
2
3config.cpp_compiler = "@LIBFUZZER_TEST_COMPILER@"
4config.target_flags = "@LIBFUZZER_TEST_FLAGS@"
5config.c_compiler = "@LIBFUZZER_TEST_COMPILER@"
6config.stdlib = "@LIBFUZZER_TEST_STDLIB@"
7config.apple_platform = "@LIBFUZZER_TEST_APPLE_PLATFORM@"
8config.apple_platform_min_deployment_target_flag = "@LIBFUZZER_TEST_MIN_DEPLOYMENT_TARGET_FLAG@"
9config.name_suffix = "@LIBFUZZER_TEST_CONFIG_SUFFIX@"
10config.arm_thumb = "@COMPILER_RT_ARM_THUMB@"
11
12config.osx_sysroot_flag = "@OSX_SYSROOT_FLAG@"
13config.cmake_binary_dir = "@CMAKE_BINARY_DIR@"
14config.llvm_library_dir = "@LLVM_LIBRARY_DIR@"
15config.target_triple = "@LLVM_TARGET_TRIPLE@"
16config.target_arch = "@LIBFUZZER_TEST_TARGET_ARCH@"
17
18# Load common config for all compiler-rt lit tests.
19lit_config.load_config(config,
20    "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
21
22if config.enable_per_target_runtime_dir:
23  config.runtime_library_dir = config.compiler_rt_libdir
24else:
25  config.runtime_library_dir = "@LLVM_LIBRARY_DIR@"
26
27lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg.py")
28