1 # Configuration file for running the libunwind tests on AIX.
4 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
7 if lit.util.isAIXTriple(config.target_triple):
8 # Add the AIX version to the triple here because there currently isn't a good
9 # way to retrieve the AIX version in the driver.
10 config.target_triple = lit.util.addAIXVersion(config.target_triple)
12 config.substitutions.append(('%{flags}', ''))
13 config.substitutions.append(('%{compile_flags}',
14 '-nostdinc++ -I %{include}'
16 config.substitutions.append(('%{link_flags}',
17 '-nostdlib++ -L %{lib} -lunwind -ldl -Wl,-bbigtoc'
19 config.substitutions.append(('%{exec}',
20 '%{executor} --execdir %T --env LIBPATH=%{lib} -- '
24 site.addsitedir(os.path.join('@LIBUNWIND_LIBCXX_PATH@', 'utils'))
25 import libcxx.test.params, libcxx.test.config
26 libcxx.test.config.configure(
27 libcxx.test.params.DEFAULT_PARAMETERS,
28 libcxx.test.features.DEFAULT_FEATURES,