Skip to content

Commit fc93261

Browse files
committed
Update the linker -Xlinker argument reordering test.
- Use -driver-print-jobs to avoid actually building the test file.
1 parent 3ac5e12 commit fc93261

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
// Statically link a "hello world" program
2-
// REQUIRES: OS=linux-gnu
32
// REQUIRES: static_stdlib
43
print("hello world!")
54
// RUN: %empty-directory(%t)
6-
// RUN: %target-swiftc_driver -v -static-stdlib -o %t/static-stdlib %s -Xlinker --no-allow-multiple-definition 2>&1| %FileCheck %s
7-
// CHECK: Swift version
8-
// CHECK: Target: x86_64-unknown-linux-gnu
5+
// RUN: %target-swiftc_driver -driver-print-jobs -static-stdlib -o %t/static-stdlib %s -Xlinker --no-allow-multiple-definition 2>&1| %FileCheck %s
96
// CHECK: {{.*}}/swift -frontend -c -primary-file {{.*}}/linker-args-order-linux.swift -target x86_64-unknown-linux-gnu -disable-objc-interop
107
// CHECK: {{.*}}/swift-autolink-extract{{.*}}
118
// CHECK: {{.*}}swift_begin.o /{{.*}}/linker-args-order-linux-{{[a-z0-9]+}}.o @/{{.*}}/linker-args-order-linux-{{[a-z0-9]+}}.autolink {{.*}} @{{.*}}/static-stdlib-args.lnk {{.*}} -Xlinker --no-allow-multiple-definition {{.*}}/swift_end.o

0 commit comments

Comments
 (0)