34 lines · plain
1# Testing configuration for back-deployment against the system-provided libc++.2#3# Under this configuration, we compile and link all the test suite against the just-built4# libc++, but we run against the system libc++.5 6import os, site7site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', '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-dir} -I %{libcxx-dir}/test/support'17))18config.substitutions.append(('%{link_flags}',19 '-nostdlib++ -L %{lib-dir} -lc++'20))21config.substitutions.append(('%{exec}',22 '%{executor} --execdir %{temp} -- '23))24 25config.stdlib = 'apple-libc++'26config.using_system_stdlib = True27 28libcxx.test.config.configure(29 libcxx.test.params.DEFAULT_PARAMETERS,30 libcxx.test.features.DEFAULT_FEATURES,31 config,32 lit_config33)34