llvm-project
25 строк · 992.0 Байт
1# This testing configuration handles running the test suite against LLVM's libc++abi
2# using either a DLL or a static library, with MinGW/Clang on Windows.
3
4lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
5
6config.substitutions.append(('%{flags}', ''))
7config.substitutions.append(('%{compile_flags}',
8'-nostdinc++ -I %{include} -I %{cxx-include} -I %{cxx-target-include} %{maybe-include-libunwind} -I %{libcxx}/test/support -I %{libcxx}/src -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS'
9))
10config.substitutions.append(('%{link_flags}',
11'-nostdlib++ -L %{lib} -lc++'
12))
13config.substitutions.append(('%{exec}',
14'%{executor} --execdir %T --prepend_env PATH=%{lib} -- '
15))
16
17import os, site
18site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))
19import libcxx.test.params, libcxx.test.config
20libcxx.test.config.configure(
21libcxx.test.params.DEFAULT_PARAMETERS,
22libcxx.test.features.DEFAULT_FEATURES,
23config,
24lit_config
25)
26