Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxxabi / test / configs / ibm-libc++abi-shared.cfg.in
blobbd6c1fb135aaa926e63bf248995aac2e14939b2a
1 # Testing configuration for libc++abi on AIX.
3 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
5 import lit.util
6 if lit.util.isAIXTriple(config.target_triple):
7   # Add the AIX version to the triple here because there currently isn't a good
8   # way to retrieve the AIX version in the driver.
9   config.target_triple = lit.util.addAIXVersion(config.target_triple)
11 config.substitutions.append(('%{flags}',''))
12 config.substitutions.append(('%{compile_flags}',
13     '-nostdinc++ -I %{include} -I %{cxx-include} -I %{cxx-target-include} %{maybe-include-libunwind} ' +
14     '-D__LIBC_NO_CPP_MATH_OVERLOADS__ ' +
15     '-D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS ' +
16     '-I %{libcxx}/test/support -pthread -I %{libcxx}/src'
18 config.substitutions.append(('%{link_flags}',
19     '-nostdlib++ -L %{lib} -lc++ -lc++abi -Wl,-bbigtoc'
21 config.substitutions.append(('%{exec}',
22     '%{executor} --execdir %T --env LIBPATH=%{lib} -- '
25 import os, site
26 site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', '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,
31     config,
32     lit_config