1 // RUN: rm -rf %t.tmpdir
2 // RUN: mkdir -p %t.tmpdir/Xcode.app/Contents/Developers/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
3 // RUN: %clang -### -target x86_64-apple-macos10.10 -fobjc-link-runtime -lfoo \
4 // RUN:   -isysroot %t.tmpdir/Xcode.app/Contents/Developers/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk \
5 // RUN:   %s 2>&1 | FileCheck %s
6 
7 // CHECK: -lfoo
8 // CHECK: .tmpdir/Xcode.app/{{.*}}libarclite_macosx.a
9