| 1 |
# This testing configuration handles running the test suite against LLVM's libc++abi |
| 2 |
# using a static library. |
| 3 |
|
| 4 |
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg') |
| 5 |
|
| 6 |
config.substitutions.append(('%{flags}', |
| 7 |
'-isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else '' |
| 8 |
)) |
| 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' |
| 11 |
)) |
| 12 |
config.substitutions.append(('%{link_flags}', |
| 13 |
'-nostdlib++ -L %{lib} -lc++ -lc++abi -pthread' |
| 14 |
)) |
| 15 |
config.substitutions.append(('%{exec}', |
| 16 |
'%{executor} --execdir %{temp} -- ' |
| 17 |
)) |
| 18 |
|
| 19 |
import os, site |
| 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, |
| 25 |
config, |
| 26 |
lit_config |
| 27 |
) |