35 lines · plain
1# Testing configuration for back-deployment against the system-provided libc++abi.2#3# Under this configuration, we compile and link all the test suite against the just-built4# libc++abi, but we run against the system libc++abi.5 6import os, site7site.addsitedir(os.path.join('@LIBCXXABI_LIBCXX_PATH@', 'utils'))8import libcxx.test.params, libcxx.test.config, libcxx.test.dsl9 10lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')11 12config.substitutions.append(('%{flags}',13 '-isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else ''14))15config.substitutions.append(('%{compile_flags}',16 '-nostdinc++ -I %{include} -I %{cxx-include} -I %{cxx-target-include} %{maybe-include-libunwind} -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS ' +17 '-I %{libcxx}/test/support -I %{libcxx}/src'18))19config.substitutions.append(('%{link_flags}',20 '-nostdlib++ -L %{lib} -lc++'21))22config.substitutions.append(('%{exec}',23 '%{executor} --execdir %{temp} -- '24))25 26config.stdlib = 'apple-libc++'27config.using_system_stdlib = True28 29libcxx.test.config.configure(30 libcxx.test.params.DEFAULT_PARAMETERS,31 libcxx.test.features.DEFAULT_FEATURES,32 config,33 lit_config34)35