| 1 |
# This testing configuration handles running the test suite against LLVM's libc++ |
| 2 |
# using a shared library. |
| 3 |
|
| 4 |
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg') |
| 5 |
|
| 6 |
config.substitutions.append(('%{flags}', |
| 7 |
'-pthread' + (' -isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else '') |
| 8 |
)) |
| 9 |
config.substitutions.append(('%{compile_flags}', |
| 10 |
'-nostdinc++ -I %{target-include-dir} -I %{include-dir} -I %{libcxx-dir}/test/support' |
| 11 |
)) |
| 12 |
config.substitutions.append(('%{link_flags}', |
| 13 |
'-nostdlib++ -L %{lib-dir} -Wl,-rpath,%{lib-dir} -lc++' |
| 14 |
)) |
| 15 |
config.substitutions.append(('%{exec}', |
| 16 |
'%{executor} --execdir %T -- ' |
| 17 |
)) |
| 18 |
|
| 19 |
import os, site |
| 20 |
site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', '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 |
) |