Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/configs/apple-libc++-shared.cfg.in
# Testing configuration for Apple's system libc++. | # Testing configuration for Apple's system libc++. | ||||
# | # | ||||
# This configuration differs from a normal LLVM shared library configuration in | # This configuration differs from a normal LLVM shared library configuration in | ||||
# that we must use DYLD_LIBRARY_PATH to run the tests against the just-built library, | # that we must use DYLD_LIBRARY_PATH to run the tests against the just-built library, | ||||
# since Apple's libc++ has an absolute install_name. | # since Apple's libc++ has an absolute install_name. | ||||
# | # | ||||
# We also don't use a per-target include directory layout, so we have only one | # We also don't use a per-target include directory layout, so we have only one | ||||
# include directory for the libc++ headers. | # include directory for the libc++ headers. | ||||
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg') | lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg') | ||||
config.substitutions.append(('%{flags}', | config.substitutions.append(('%{flags}', | ||||
'-isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else '' | '-isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else '' | ||||
)) | )) | ||||
config.substitutions.append(('%{compile_flags}', | config.substitutions.append(('%{compile_flags}', | ||||
'-nostdinc++ -I %{install}/include/c++/v1 -I %{libcxx}/test/support' | '-nostdinc++ -I %{include} -I %{libcxx}/test/support' | ||||
)) | )) | ||||
config.substitutions.append(('%{link_flags}', | config.substitutions.append(('%{link_flags}', | ||||
'-nostdlib++ -L %{install}/lib -lc++' | '-nostdlib++ -L %{lib} -lc++' | ||||
)) | )) | ||||
config.substitutions.append(('%{exec}', | config.substitutions.append(('%{exec}', | ||||
'%{executor} --execdir %T --env DYLD_LIBRARY_PATH=%{install}/lib -- ' | '%{executor} --execdir %T --env DYLD_LIBRARY_PATH=%{lib} -- ' | ||||
)) | )) | ||||
import os, site | import os, site | ||||
site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils')) | site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils')) | ||||
import libcxx.test.params, libcxx.test.newconfig | import libcxx.test.params, libcxx.test.newconfig | ||||
libcxx.test.newconfig.configure( | libcxx.test.newconfig.configure( | ||||
libcxx.test.params.DEFAULT_PARAMETERS, | libcxx.test.params.DEFAULT_PARAMETERS, | ||||
libcxx.test.features.DEFAULT_FEATURES, | libcxx.test.features.DEFAULT_FEATURES, | ||||
config, | config, | ||||
lit_config | lit_config | ||||
) | ) |