File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
validation-test/execution Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: echo "int global() { return 42; }" | %clang -dynamiclib -o %t/libLinkMe.dylib -x c -
2
+ // RUN: echo "int global() { return 42; }" | %clang -dynamiclib -o %t/libLinkMe.dylib -x c -L %sdk/usr/lib -
3
3
// RUN: %target-swift-frontend -emit-module -parse-stdlib -o %t -module-name LinkMe -module-link-name LinkMe %S/../../Inputs/empty.swift
4
4
5
5
// RUN: %target-jit-run -DIMPORT %s -I %t -L %t 2>&1
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: cp -R %S/Inputs/VerySmallObjCFramework.framework %t
3
- // RUN: %clang -dynamiclib %S/Inputs/VerySmallObjCFramework.m -fmodules -F %t -o %t/VerySmallObjCFramework.framework/VerySmallObjCFramework
3
+ // RUN: %clang -dynamiclib %S/Inputs/VerySmallObjCFramework.m -fmodules -F %t -o %t/VerySmallObjCFramework.framework/VerySmallObjCFramework -L %sdk/usr/lib
4
4
// RUN: %swift_driver -F %t %s | %FileCheck %s
5
5
6
6
// REQUIRES: objc_interop
Original file line number Diff line number Diff line change 1
1
// REQUIRES: OS=macosx
2
2
// RUN: %empty-directory(%t)
3
3
4
- // RUN: echo 'int abc = 42;' | %clang -x c - -dynamiclib -Xlinker -install_name -Xlinker libabc.dylib -o %t/libabc.dylib
5
- // RUN: echo 'int test() { extern int abc; return abc; }' | %clang -x c - -L%t -dynamiclib -labc -o %t/libfoo.dylib
4
+ // RUN: echo 'int abc = 42;' | %clang -x c - -dynamiclib -Xlinker -install_name -Xlinker libabc.dylib -o %t/libabc.dylib -L %sdk/usr/lib
5
+ // RUN: echo 'int test() { extern int abc; return abc; }' | %clang -x c - -L%t -dynamiclib -labc -o %t/libfoo.dylib -L %sdk/usr/lib
6
6
7
7
// RUN: %swift_driver -I %S/Inputs/custom-modules -L%t %s | %FileCheck %s
8
8
// CHECK: {{okay}}
You can’t perform that action at this time.
0 commit comments