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')
7 config.substitutions.append(('%{flags}', '-pthread'))
8 config.substitutions.append(('%{compile_flags}',
9 '-nostdinc++ -D__LIBC_NO_CPP_MATH_OVERLOADS__ -I %{include} -I %{libcxx}/test/support'
11 config.substitutions.append(('%{link_flags}',
12 '-nostdlib++ -L %{lib} -lc++ -lc++abi -latomic -Wl,-bbigtoc'
14 config.substitutions.append(('%{exec}',
15 '%{executor} --execdir %T --env LIBPATH=%{lib} -- '
18 # LIBCXX-AIX-FIXME is the feature name used to XFAIL the
19 # initial AIX failures until they can be properly diagnosed
20 # and fixed. This allows easier detection of new test failures
21 # and regressions. Note: New failures should not be suppressed
22 # using this feature. (Also see llvm.org/PR52188)
23 config.available_features.add('LIBCXX-AIX-FIXME')
26 site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', '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,