reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    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
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
#
# Test framework and SDK search paths.
#   myFrameworks is not an absolute path, so it should not by found in SDK
#   /Custom/Frameworks should be found in SDK
#   /opt/Frameworks should not be found in SDK
#   /System/Library/Frameworks is implicit and should be in SDK
#
# RUN: ld64.lld -arch x86_64 -r -test_file_usage -v \
# RUN:        -path_exists myFrameworks \
# RUN:        -path_exists myFrameworks/my.framework/my \
# RUN:        -path_exists /opt/Frameworks \
# RUN:        -path_exists /opt/Frameworks/other.framework/other \
# RUN:        -path_exists /Custom/Frameworks \
# RUN:        -path_exists /Custom/Frameworks/Bar.framework/Bar \
# RUN:        -path_exists /System/Library/Frameworks \
# RUN:        -path_exists /System/Library/Frameworks/Foo.framework/Foo \
# RUN:        -path_exists /SDK/myFrameworks \
# RUN:        -path_exists /SDK/myFrameworks/my.framework/my \
# RUN:        -path_exists /SDK/Custom/Frameworks \
# RUN:        -path_exists /SDK/Custom/Frameworks/Bar.framework/Bar \
# RUN:        -path_exists /SDK/System/Library/Frameworks \
# RUN:        -path_exists /SDK/System/Library/Frameworks/Foo.framework/Foo \
# RUN:        -syslibroot /SDK \
# RUN:        -FmyFrameworks \
# RUN:        -F/Custom/Frameworks \
# RUN:        -F/opt/Frameworks \
# RUN:        -framework my \
# RUN:        -framework Bar \
# RUN:        -framework Foo \
# RUN:        -framework other \
# RUN: 2>&1 | FileCheck %s

# CHECK:        Framework search paths:
# CHECK-NEXT:     myFrameworks
# CHECK-NEXT:     /SDK/Custom/Frameworks
# CHECK-NEXT:     /opt/Frameworks
# CHECK-NEXT:     /SDK/System/Library/Frameworks
# CHECK: Found framework myFrameworks/my.framework/my
# CHECK: Found framework /SDK/Custom/Frameworks/Bar.framework/Bar
# CHECK: Found framework /SDK/System/Library/Frameworks/Foo.framework/Foo
# CHECK: Found framework /opt/Frameworks/other.framework/other