1 # This testing configuration handles running the test suite against LLVM's libc++
2 # using a static library.
4 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
6 config.substitutions.append(('%{flags}',
7 '-pthread' + (' -isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else '')
9 config.substitutions.append(('%{compile_flags}',
10 '-nostdinc++ -I %{include-dir} -I %{target-include-dir} -I %{libcxx-dir}/test/support'
12 config.substitutions.append(('%{link_flags}',
13 '-nostdlib++ -L %{lib-dir} -lc++ -lc++abi'
15 config.substitutions.append(('%{exec}',
16 '%{executor} --execdir %T -- '
20 site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
21 import libcxx.test.params, libcxx.test.config
22 libcxx.test.config.configure(
23 libcxx.test.params.DEFAULT_PARAMETERS,
24 libcxx.test.features.DEFAULT_FEATURES,