brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 238cfdb Raw
34 lines · plain
1# Testing configuration for libc++abi on AIX.2 3lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')4 5import lit.util6if lit.util.isAIXTriple(config.target_triple):7  # Add the AIX version to the triple here because there currently isn't a good8  # way to retrieve the AIX version in the driver.9  config.target_triple = lit.util.addAIXVersion(config.target_triple)10 11config.substitutions.append(('%{flags}',''))12config.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'17))18config.substitutions.append(('%{link_flags}',19    '-nostdlib++ -L %{lib} -lc++ -lc++abi -Wl,-bbigtoc'20))21config.substitutions.append(('%{exec}',22    '%{executor} --execdir %{temp} --env LIBPATH=%{lib} -- '23))24 25import os, site26site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))27import libcxx.test.params, libcxx.test.config28libcxx.test.config.configure(29    libcxx.test.params.DEFAULT_PARAMETERS,30    libcxx.test.features.DEFAULT_FEATURES,31    config,32    lit_config33)34