1
1
# Testing configuration for Apple's system libc++.
2
2
#
3
3
# This configuration differs from a normal LLVM shared library configuration in
4
- # that we must use DYLD_LIBRARY_PATH to run the tests against the just-built library,
5
- # since Apple's libc++ has an absolute install_name .
4
+ # that we have a single include directory for the libc++ headers since Apple
5
+ # system builds don't use a per-target include directory layout .
6
6
#
7
- # We also don't use a per-target include directory layout, so we have only one
8
- # include directory for the libc++ headers .
7
+ # We also identify the variant of the standard library as 'apple-libc++', which
8
+ # enables additional vendor-specific tests .
9
9
10
10
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
11
11
@@ -16,10 +16,10 @@ config.substitutions.append(('%{compile_flags}',
16
16
'-nostdinc++ -I %{include-dir} -I %{libcxx-dir}/test/support'
17
17
))
18
18
config.substitutions.append(('%{link_flags}',
19
- '-nostdlib++ -L %{lib-dir} -lc++'
19
+ '-nostdlib++ -L %{lib-dir} -Wl,-rpath,%{lib-dir} - lc++'
20
20
))
21
21
config.substitutions.append(('%{exec}',
22
- '%{executor} --execdir %T --env DYLD_LIBRARY_PATH=%{lib-dir} -- '
22
+ '%{executor} --execdir %T -- '
23
23
))
24
24
25
25
config.stdlib = 'apple-libc++'
0 commit comments