Skip to content

Commit c650436

Browse files
committed
tests: use a %target-* substitution instead of calling 'ld' directly
rdar://20474868 Swift SVN r27176
1 parent fffc954 commit c650436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/DebugInfo/ASTSection_linker.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
// RUN: %swift-ide-test -test-CompilerInvocation-from-module -source-filename=%t/ASTSection.swiftmodule
88

99
// Test the inline section mechanism.
10-
// RUN: ld %t/ASTSection.o -sectcreate __SWIFT __ast %t/ASTSection.swiftmodule -o %t/ASTSection.dylib -L%platform-module-dir -dylib -lSystem
10+
// RUN: %target-swiftc_driver %t/ASTSection.o -Xlinker -sectcreate -Xlinker __SWIFT -Xlinker __ast -Xlinker %t/ASTSection.swiftmodule -o %t/ASTSection.dylib
1111
// RUN: %lldb-moduleimport-test %t/ASTSection.dylib | FileCheck %s
1212

1313
// Test the symbol table entry.
14-
// RUN: ld %t/ASTSection.o -add_ast_path %t/ASTSection.swiftmodule -o %t/ASTSection.dylib -L%platform-module-dir -dylib -lSystem
14+
// RUN: %target-swiftc_driver %t/ASTSection.o -Xlinker -add_ast_path -Xlinker %t/ASTSection.swiftmodule -o %t/ASTSection.dylib
1515
// RUN: %lldb-moduleimport-test %t/ASTSection.dylib | FileCheck %s
1616

1717
// REQUIRES: OS=macosx

0 commit comments

Comments
 (0)