forked from OSchip/llvm-project
27 lines
990 B
INI
27 lines
990 B
INI
# This testing configuration handles running the test suite against LLVM's libc++
|
|
# using a shared library, with GCC. This is done differently from Clang because
|
|
# GCC does not support the -nostdlib++ command-line flag.
|
|
|
|
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
|
|
|
|
config.substitutions.append(('%{flags}', ''))
|
|
config.substitutions.append(('%{compile_flags}',
|
|
'-nostdinc++ -I %{include} -I %{target-include} -I %{libcxx}/test/support'
|
|
))
|
|
config.substitutions.append(('%{link_flags}',
|
|
'-L %{lib} -Wl,-rpath,%{lib} -nodefaultlibs -lc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc -latomic'
|
|
))
|
|
config.substitutions.append(('%{exec}',
|
|
'%{executor} --execdir %T -- '
|
|
))
|
|
|
|
import os, site
|
|
site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
|
|
import libcxx.test.params, libcxx.test.newconfig
|
|
libcxx.test.newconfig.configure(
|
|
libcxx.test.params.DEFAULT_PARAMETERS,
|
|
libcxx.test.features.DEFAULT_FEATURES,
|
|
config,
|
|
lit_config
|
|
)
|