brintos

brintos / llvm-project-archived public Read only

0
0
Text · 908 B · b827155 Raw
25 lines · plain
1#2# This testing configuration handles running the test suite against the3# native C++ Standard Library, i.e. whatever standard library is used by4# default when no special compiler flags are provided.5#6 7lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')8 9config.substitutions.append(('%{flags}',10    '-pthread' + (' -isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else '')11))12config.substitutions.append(('%{compile_flags}', '-I %{libcxx-dir}/test/support'))13config.substitutions.append(('%{link_flags}', ''))14config.substitutions.append(('%{exec}', '%{executor} --execdir %{temp} -- '))15 16import os, site17site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))18import libcxx.test.params, libcxx.test.config19libcxx.test.config.configure(20    libcxx.test.params.DEFAULT_PARAMETERS,21    libcxx.test.features.DEFAULT_FEATURES,22    config,23    lit_config24)25