1 # Testing configuration for Apple's system libc++.
3 # This configuration differs from a normal LLVM shared library configuration in
4 # that we must use DYLD_LIBRARY_PATH to run the tests against the just-built library,
5 # since Apple's libc++ has an absolute install_name.
7 # We also don't use a per-target include directory layout, so we have only one
8 # include directory for the libc++ headers.
10 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
12 config.substitutions.append(('%{flags}',
13 '-isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else ''
15 config.substitutions.append(('%{compile_flags}',
16 '-nostdinc++ -I %{include} -I %{libcxx}/test/support'
18 config.substitutions.append(('%{link_flags}',
19 '-nostdlib++ -L %{lib} -lc++'
21 config.substitutions.append(('%{exec}',
22 '%{executor} --execdir %T --env DYLD_LIBRARY_PATH=%{lib} -- '
25 config.stdlib = 'apple-libc++'
28 site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
29 import libcxx.test.params, libcxx.test.config
30 libcxx.test.config.configure(
31 libcxx.test.params.DEFAULT_PARAMETERS,
32 libcxx.test.features.DEFAULT_FEATURES,