Debian Codegraph @

libcxxabi/test/configs/apple-libc++abi-system.cfg.in

raw
1 # Testing configuration for back-deployment against the system-provided libc++abi.
2 #
3 # Under this configuration, we compile and link all the test suite against the just-built
4 # libc++abi, but we run against the system libc++abi.
5
6 import os, site
7 site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))
8 import libcxx.test.params, libcxx.test.config, libcxx.test.dsl
9
10 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
11
12 config.substitutions.append(('%{flags}',
13 '-isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else ''
14 ))
15 config.substitutions.append(('%{compile_flags}',
16 '-nostdinc++ -I %{include} -I %{cxx-include} -I %{cxx-target-include} %{maybe-include-libunwind} -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS ' +
17 '-I %{libcxx}/test/support -I %{libcxx}/src'
18 ))
19 config.substitutions.append(('%{link_flags}',
20 '-nostdlib++ -L %{lib} -lc++'
21 ))
22 config.substitutions.append(('%{exec}',
23 '%{executor} --execdir %{temp} -- '
24 ))
25
26 config.stdlib = 'apple-libc++'
27 config.using_system_stdlib = True
28
29 libcxx.test.config.configure(
30 libcxx.test.params.DEFAULT_PARAMETERS,
31 libcxx.test.features.DEFAULT_FEATURES,
32 config,
33 lit_config
34 )