2 # This testing configuration handles running the test suite against the
3 # native C++ Standard Library, i.e. whatever standard library is used by
4 # default when no special compiler flags are provided.
7 lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
9 config.substitutions.append(('%{flags}',
10 '-pthread' + (' -isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else '')
12 config.substitutions.append(('%{compile_flags}', '-I %{libcxx-dir}/test/support'))
13 config.substitutions.append(('%{link_flags}', ''))
14 config.substitutions.append(('%{exec}', '%{executor} --execdir %T -- '))
17 site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
18 import libcxx.test.params, libcxx.test.config
19 libcxx.test.config.configure(
20 libcxx.test.params.DEFAULT_PARAMETERS,
21 libcxx.test.features.DEFAULT_FEATURES,