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 7import lit.util 8if 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) 12 13config.substitutions.append(('%{flags}', '-pthread')) 14config.substitutions.append(('%{compile_flags}', 15 '-nostdinc++ -D__LIBC_NO_CPP_MATH_OVERLOADS__ -I %{include-dir} -I %{libcxx-dir}/test/support' 16)) 17config.substitutions.append(('%{link_flags}', 18 '-nostdlib++ -L %{lib-dir} -lc++ -lc++abi -latomic -Wl,-bbigtoc' 19)) 20config.substitutions.append(('%{exec}', 21 '%{executor} --execdir %T --env LIBPATH=%{lib-dir} -- ' 22)) 23 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) 29config.available_features.add('LIBCXX-AIX-FIXME') 30 31import os, site 32site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils')) 33import libcxx.test.params, libcxx.test.config 34libcxx.test.config.configure( 35 libcxx.test.params.DEFAULT_PARAMETERS, 36 libcxx.test.features.DEFAULT_FEATURES, 37 config, 38 lit_config 39) 40