forked from OSchip/llvm-project
28 lines
976 B
INI
28 lines
976 B
INI
# Testing configuration for libc++abi on AIX.
|
|
|
|
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
|
|
|
|
config.substitutions.append(('%{flags}',''))
|
|
config.substitutions.append(('%{compile_flags}',
|
|
'-nostdinc++ -isystem %{install}/include/c++/v1 ' +
|
|
'-D__LIBC_NO_CPP_MATH_OVERLOADS__ -DLIBCXXABI_NO_TIMER ' +
|
|
'-D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS ' +
|
|
'-I %{libcxx}/test/support -I %{libcxx}/src'
|
|
))
|
|
config.substitutions.append(('%{link_flags}',
|
|
'-nostdlib++ -L %{install}/lib -lc++ -lc++abi -Wl,-bbigtoc'
|
|
))
|
|
config.substitutions.append(('%{exec}',
|
|
'%{executor} --execdir %T --env LIBPATH=%{install}/lib -- '
|
|
))
|
|
|
|
import os, site
|
|
site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))
|
|
import libcxx.test.params, libcxx.test.newconfig, libcxx.test.newconfig
|
|
libcxx.test.newconfig.configure(
|
|
libcxx.test.params.DEFAULT_PARAMETERS,
|
|
libcxx.test.features.DEFAULT_FEATURES,
|
|
config,
|
|
lit_config
|
|
)
|