summaryrefslogtreecommitdiffstats
path: root/lld/test/mach-o/libresolve-one-syslibroot.yaml
blob: 8e28ab4d302aa177b18acc8aae3e0638aa046b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# RUN: ld64.lld -test_file_usage -v \
# RUN:        -path_exists /usr/lib \
# RUN:        -path_exists /Applications/MySDK/usr/local/lib \
# RUN:        -path_exists /Applications/MySDK/usr/local/lib/libSystem.a \
# RUN:        -path_exists /hasFoo \
# RUN:        -path_exists /hasFoo/foo.o \
# RUN:        -syslibroot /Applications/MySDK \
# RUN:        -L/hasFoo \
# RUN:        -lSystem -lfoo.o \
# RUN: 2>&1 | FileCheck %s

# When just one -syslibroot is specified, we apparently want to skip *system*
# paths that aren't found. User ones should still get added. In this case
# /usr/lib exists, but not the equivalent in the -syslibroot, so there should be
# no mention of /usr/lib.

# CHECK: Library search paths:
# CHECK:     /hasFoo
# CHECK-NOT:     /usr/lib
# CHECK-NOT:     /usr/local/lib
# CHECK:     /Applications/MySDK/usr/local/lib
# CHECK-NOT:     /usr/lib
# CHECK-NOT:     /usr/local/lib
# CHECK: Found library /Applications/MySDK/usr/local/lib/libSystem.a
# CHECK: Found library /hasFoo/foo.o
OpenPOWER on IntegriCloud