1 # This testing configuration handles running the test suite against libc++ on
2 # AIX using a shared library.
5 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
8 if lit.util.isAIXTriple(config.target_triple):
9 # Add the AIX version to the triple here because there currently isn't a good
10 # way to retrieve the AIX version in the driver.
11 config.target_triple = lit.util.addAIXVersion(config.target_triple)
13 config.substitutions.append(('%{flags}', '-pthread'))
14 config.substitutions.append(('%{compile_flags}',
15 '-nostdinc++ -D__LIBC_NO_CPP_MATH_OVERLOADS__ -I %{include} -I %{libcxx}/test/support'
17 config.substitutions.append(('%{link_flags}',
18 '-nostdlib++ -L %{lib} -lc++ -lc++abi -latomic -Wl,-bbigtoc'
20 config.substitutions.append(('%{exec}',
21 '%{executor} --execdir %T --env LIBPATH=%{lib} -- '
24 # LIBCXX-AIX-FIXME is the feature name used to XFAIL the
25 # initial AIX failures until they can be properly diagnosed
26 # and fixed. This allows easier detection of new test failures
27 # and regressions. Note: New failures should not be suppressed
28 # using this feature. (Also see llvm.org/PR52188)
29 config.available_features.add('LIBCXX-AIX-FIXME')
32 site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
33 import libcxx.test.params, libcxx.test.config
34 libcxx.test.config.configure(
35 libcxx.test.params.DEFAULT_PARAMETERS,
36 libcxx.test.features.DEFAULT_FEATURES,