1 # This testing configuration handles running the test suite against LLVM's libc++abi
2 # using a static library.
4 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
6 config.substitutions.append(('%{flags}',
7 '-isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else ''
9 config.substitutions.append(('%{compile_flags}',
10 '-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'
12 config.substitutions.append(('%{link_flags}',
13 '-nostdlib++ -L %{lib} -lc++ -lc++abi -pthread'
15 config.substitutions.append(('%{exec}',
16 '%{executor} --execdir %T -- '
20 site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))
21 import libcxx.test.params, libcxx.test.config
22 libcxx.test.config.configure(
23 libcxx.test.params.DEFAULT_PARAMETERS,
24 libcxx.test.features.DEFAULT_FEATURES,