• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This testing configuration handles running the test suite against libc++ on
2# AIX using a shared library.
3#
4
5lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
6
7config.substitutions.append(('%{flags}', ''))
8config.substitutions.append(('%{compile_flags}',
9    '-nostdinc++ -D__LIBC_NO_CPP_MATH_OVERLOADS__ -I %{include} -I %{libcxx}/test/support -pthread'
10))
11config.substitutions.append(('%{link_flags}',
12    '-nostdlib++ -L %{lib} -lc++ -lc++abi -latomic -Wl,-bbigtoc'
13))
14config.substitutions.append(('%{exec}',
15    '%{executor} --execdir %T --env LIBPATH=%{lib} -- '
16))
17
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)
23config.available_features.add('LIBCXX-AIX-FIXME')
24
25import os, site
26site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
27import libcxx.test.params, libcxx.test.config
28libcxx.test.config.configure(
29    libcxx.test.params.DEFAULT_PARAMETERS,
30    libcxx.test.features.DEFAULT_FEATURES,
31    config,
32    lit_config
33)
34