llvm-project/lld/test/MachO/search-paths.test

20 lines
559 B
Plaintext

UNSUPPORTED: darwin
RUN: mkdir -p %t1 %t2
RUN: %lld -v -dylib -o /dev/null -L%t1 -F%t2 2>&1 \
RUN: | FileCheck -DLDIR=%t1 -DFDIR=%t2 %s
CHECK: Library search paths:
CHECK-NEXT: [[LDIR]]
CHECK-NEXT: /usr/lib
CHECK-NEXT: Framework search paths:
CHECK-NEXT: [[FDIR]]
CHECK-NEXT: /System/Library/Frameworks
RUN: %lld -v -dylib -o /dev/null -L%t1 -F%t2 -Z 2>&1 \
RUN: | FileCheck -DLDIR=%t1 -DFDIR=%t2 --check-prefix=CHECK_Z %s
CHECK_Z: Library search paths:
CHECK_Z-NEXT: [[LDIR]]
CHECK_Z-NEXT: Framework search paths:
CHECK_Z-NEXT: [[FDIR]]