The darwin linker has an option, heavily used by Xcode, in which, instead of listing all input files on the command line, the input file paths are written to a text file and the path of that text file is passed to the linker with the -filelist option (similar to @file). In order to make test cases for this, I generalized the -test_libresolution option to become -test_file_usage. llvm-svn: 215762
22 lines
747 B
YAML
22 lines
747 B
YAML
# RUN: lld -flavor darwin -arch x86_64 -r -test_file_usage -v \
|
|
# RUN: -path_exists /usr/lib \
|
|
# RUN: -path_exists /usr/local/lib \
|
|
# RUN: -path_exists /usr/lib/libSystem.dylib \
|
|
# RUN: -path_exists hasFoo \
|
|
# RUN: -path_exists hasFoo/libFoo.dylib \
|
|
# RUN: -path_exists /hasBar \
|
|
# RUN: -path_exists /hasBar/libBar.dylib \
|
|
# RUN: -L hasFoo \
|
|
# RUN: -L /hasBar \
|
|
# RUN: -lSystem -lFoo -lBar \
|
|
# RUN: 2>&1 | FileCheck %s
|
|
|
|
# CHECK: Library search paths:
|
|
# CHECK: hasFoo
|
|
# CHECK: /hasBar
|
|
# CHECK: /usr/lib
|
|
# CHECK: /usr/local/lib
|
|
# CHECK: Found library /usr/lib/libSystem.dylib
|
|
# CHECK: Found library hasFoo/libFoo.dylib
|
|
# CHECK: Found library /hasBar/libBar.dylib
|