| 1 |
# This testing configuration handles running the test suite against LLVM's libc++ |
| 2 |
# using a shared library, with GCC. This is done differently from Clang because |
| 3 |
# we need to explicitly link against libm for some tests with GCC. |
| 4 |
|
| 5 |
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg') |
| 6 |
|
| 7 |
config.substitutions.append(('%{flags}', '-pthread')) |
| 8 |
config.substitutions.append(('%{compile_flags}', |
| 9 |
'-nostdinc++ -I %{target-include-dir} -I %{include-dir} -I %{libcxx-dir}/test/support' |
| 10 |
)) |
| 11 |
config.substitutions.append(('%{link_flags}', |
| 12 |
'-nostdlib++ -L %{lib-dir} -Wl,-rpath,%{lib-dir} -lc++ -lm' |
| 13 |
)) |
| 14 |
config.substitutions.append(('%{exec}', |
| 15 |
'%{executor} --execdir %T -- ' |
| 16 |
)) |
| 17 |
|
| 18 |
import os, site |
| 19 |
site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils')) |
| 20 |
import libcxx.test.params, libcxx.test.config |
| 21 |
libcxx.test.config.configure( |
| 22 |
libcxx.test.params.DEFAULT_PARAMETERS, |
| 23 |
libcxx.test.features.DEFAULT_FEATURES, |
| 24 |
config, |
| 25 |
lit_config |
| 26 |
) |