1 # Testing configuration for Apple's system libc++abi.
3 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
5 config.substitutions.append(('%{flags}',
6 '-isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else ''
8 config.substitutions.append(('%{compile_flags}',
9 '-nostdinc++ -I %{include} -I %{cxx-include} -I %{cxx-target-include} %{maybe-include-libunwind} -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS ' +
10 '-I %{libcxx}/test/support -I %{libcxx}/src'
12 config.substitutions.append(('%{link_flags}',
13 '-nostdlib++ -L %{lib} -lc++ -lc++abi'
15 config.substitutions.append(('%{exec}',
16 '%{executor} --execdir %T --env DYLD_LIBRARY_PATH=%{lib} -- '
19 config.stdlib = 'apple-libc++'
22 site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))
23 import libcxx.test.params, libcxx.test.config
24 libcxx.test.config.configure(
25 libcxx.test.params.DEFAULT_PARAMETERS,
26 libcxx.test.features.DEFAULT_FEATURES,