| 1 |
# Testing configuration for libc++abi on AIX. |
| 2 |
|
| 3 |
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg') |
| 4 |
|
| 5 |
import lit.util |
| 6 |
if lit.util.isAIXTriple(config.target_triple): |
| 7 |
# Add the AIX version to the triple here because there currently isn't a good |
| 8 |
# way to retrieve the AIX version in the driver. |
| 9 |
config.target_triple = lit.util.addAIXVersion(config.target_triple) |
| 10 |
|
| 11 |
config.substitutions.append(('%{flags}','')) |
| 12 |
config.substitutions.append(('%{compile_flags}', |
| 13 |
'-nostdinc++ -I %{include} -I %{cxx-include} -I %{cxx-target-include} %{maybe-include-libunwind} ' + |
| 14 |
'-D__LIBC_NO_CPP_MATH_OVERLOADS__ ' + |
| 15 |
'-D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS ' + |
| 16 |
'-I %{libcxx}/test/support -pthread -I %{libcxx}/src' |
| 17 |
)) |
| 18 |
config.substitutions.append(('%{link_flags}', |
| 19 |
'-nostdlib++ -L %{lib} -lc++ -lc++abi -Wl,-bbigtoc' |
| 20 |
)) |
| 21 |
config.substitutions.append(('%{exec}', |
| 22 |
'%{executor} --execdir %{temp} --env LIBPATH=%{lib} -- ' |
| 23 |
)) |
| 24 |
|
| 25 |
import os, site |
| 26 |
site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils')) |
| 27 |
import libcxx.test.params, libcxx.test.config |
| 28 |
libcxx.test.config.configure( |
| 29 |
libcxx.test.params.DEFAULT_PARAMETERS, |
| 30 |
libcxx.test.features.DEFAULT_FEATURES, |
| 31 |
config, |
| 32 |
lit_config |
| 33 |
) |