Skip to content

Commit a1e8a35

Browse files
committed
Update test to link against the Darwin SDK
1 parent 1be17a2 commit a1e8a35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/DebugInfo/ASTSection_linker.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
// RUN: %empty-directory(%t)
44

5-
// RUN: %target-swift-frontend -c -sdk /fake/sdk/path -Xcc -DA -Xcc -DB -emit-module -o %t %S/ASTSection.swift -swift-version 4
5+
// RUN: %target-swift-frontend -c -Xcc -DA -Xcc -DB -emit-module -o %t %S/ASTSection.swift -swift-version 4
66
// RUN: %swift-ide-test -test-CompilerInvocation-from-module -source-filename=%t/ASTSection.swiftmodule
77

88
// Test the inline section mechanism.
9-
// RUN: %target-ld %t/ASTSection.o -sectcreate __DWARF __swift_ast %t/ASTSection.swiftmodule -o %t/ASTSection.dylib -dylib -lSystem -lobjc
9+
// RUN: %target-ld %t/ASTSection.o -sectcreate __DWARF __swift_ast %t/ASTSection.swiftmodule -o %t/ASTSection.dylib -dylib -L%sdk/usr/lib -lSystem -lobjc
1010
// RUN: %lldb-moduleimport-test -verbose %t/ASTSection.dylib | %FileCheck %s
1111

1212
// Test the symbol table entry.
13-
// RUN: %target-ld %t/ASTSection.o -add_ast_path %t/ASTSection.swiftmodule -o %t/ASTSection.dylib -dylib -lSystem -lobjc
13+
// RUN: %target-ld %t/ASTSection.o -add_ast_path %t/ASTSection.swiftmodule -o %t/ASTSection.dylib -dylib -L%sdk/usr/lib -lSystem -lobjc
1414
// RUN: %lldb-moduleimport-test -verbose %t/ASTSection.dylib | %FileCheck %s
1515

1616
// REQUIRES: OS=macosx
1717

1818
// CHECK: - Swift Version: {{.+}}.{{.+}}
1919
// CHECK: - Compatibility Version: 4
2020
// CHECK: - Target: {{.+}}-{{.+}}-{{.+}}
21-
// CHECK: - SDK path: /fake/sdk/path{{$}}
21+
// CHECK: - SDK path: {{.*}}MacOS{{.*}}.sdk
2222
// CHECK: - -Xcc options: -working-directory {{.+}} -DA -DB
2323
// CHECK: Importing ASTSection... ok!

0 commit comments

Comments
 (0)