[flang] Lower procedure pointer components (#75453)
[llvm-project.git] / libcxxabi / test / configs / cmake-bridge.cfg.in
blob1d0f51d37437bd12764acfb9b1d4f9a3ff23ffa2
1 @AUTO_GEN_COMMENT@
3 @SERIALIZED_LIT_PARAMS@
6 # This file performs the bridge between the CMake configuration and the Lit
7 # configuration files by setting up the LitConfig object and various Lit
8 # substitutions from CMake variables.
10 # Individual configuration files can take advantage of this bridge by
11 # loading the file and then setting up the remaining Lit substitutions.
14 import os, site
15 site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))
16 site.addsitedir(os.path.join('@LIBCXXABI_SOURCE_DIR@', 'test'))
17 import libcxx.test.format
19 # Basic configuration of the test suite
20 config.name = os.path.basename('@LIBCXXABI_TEST_CONFIG@')
21 config.test_source_root = os.path.join('@LIBCXXABI_SOURCE_DIR@', 'test')
22 config.test_format = libcxx.test.format.CxxStandardLibraryTest()
23 config.recursiveExpansionLimit = 10
24 config.test_exec_root = os.path.join('@CMAKE_BINARY_DIR@', 'test')
26 # TODO: This is a non-standard Lit attribute and we should have another way of accessing this.
27 config.host_triple = '@LLVM_HOST_TRIPLE@'
29 config.substitutions.append(('%{cxx}', '@CMAKE_CXX_COMPILER@'))
30 config.substitutions.append(('%{libcxx}', '@LIBCXXABI_LIBCXX_PATH@'))
31 config.substitutions.append(('%{include}', '@LIBCXXABI_SOURCE_DIR@/include'))
32 config.substitutions.append(('%{cxx-include}', '@LIBCXXABI_HEADER_DIR@/include/c++/v1'))
33 config.substitutions.append(('%{cxx-target-include}', '@LIBCXXABI_HEADER_DIR@/include/%{triple}/c++/v1'))
34 config.substitutions.append(('%{lib}', '@LIBCXXABI_LIBRARY_DIR@'))
36 if @LIBCXXABI_USE_LLVM_UNWINDER@:
37     config.substitutions.append(('%{maybe-include-libunwind}', '-I "@LIBCXXABI_LIBUNWIND_INCLUDES_INTERNAL@"'))
38 else:
39     config.substitutions.append(('%{maybe-include-libunwind}', ''))