27 lines
1.1 KiB
INI
27 lines
1.1 KiB
INI
# This testing configuration handles running the test suite against LLVM's libc++
|
|
# using a DLL, with Clang-cl on Windows. This variant sets _HAS_EXCEPTIONS = 0
|
|
# which removes exception class definitions from the vcruntime.
|
|
|
|
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
|
|
|
|
config.substitutions.append(('%{flags}', '--driver-mode=g++'))
|
|
config.substitutions.append(('%{compile_flags}',
|
|
'-nostdinc++ -I %{include} -I %{target-include} -I %{libcxx}/test/support -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_STDIO_ISO_WIDE_SPECIFIERS -DNOMINMAX -D_HAS_EXCEPTIONS=0'
|
|
))
|
|
config.substitutions.append(('%{link_flags}',
|
|
'-nostdlib -L %{lib} -lc++ -lmsvcrt -lmsvcprt -loldnames'
|
|
))
|
|
config.substitutions.append(('%{exec}',
|
|
'%{executor} --execdir %T --env PATH=%{lib} -- '
|
|
))
|
|
|
|
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
|
|
)
|