Skip to content

Commit 3a47e7c

Browse files
committed
[test] Fix validation-test/Driver/many-inputs.swift harder.
We still need a valid SDK because we're making sure linking works too. rdar://problem/25617239
1 parent d307e31 commit 3a47e7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

validation-test/Driver/many-inputs.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
// This limit was chosen because multi-threaded compilation broke here on OS X
44
// at one point.
55
// RUN: for i in {1..1100}; do echo "public func foo$i() {}" > %t/$i.swift; echo "CHECK: foo$i" >> %t/check.txt; done
6+
// RUN: false
67

78
// We're not using %target-swift-build because we don't want to run into any
89
// limits *xcrun* has on arguments.
9-
// RUN: %swiftc_driver -sdk "" -target %target-triple -force-single-frontend-invocation -emit-library %t/*.swift -o %t/libWMO
10+
// RUN: %swiftc_driver -sdk %sdk -target %target-triple -force-single-frontend-invocation -emit-library %t/*.swift -o %t/libWMO
1011
// RUN: nm %t/libWMO | FileCheck %t/check.txt
1112

12-
// RUN: %swiftc_driver -sdk "" -target %target-triple -force-single-frontend-invocation -num-threads 1 -emit-library %t/*.swift -o %t/libWMOThreaded
13+
// RUN: %swiftc_driver -sdk %sdk -target %target-triple -force-single-frontend-invocation -num-threads 1 -emit-library %t/*.swift -o %t/libWMOThreaded
1314
// RUN: nm %t/libWMOThreaded | FileCheck %t/check.txt
1415

1516
// This is very slow due to process overhead. It's also doing one file at a time
1617
// because we don't have a good way for lit tests to claim more than one thread.
1718
// But it's still important to check.
18-
// RUN: %swiftc_driver -sdk "" -target %target-triple -emit-library %t/*.swift -o %t/libMultiFile
19+
// RUN: %swiftc_driver -sdk %sdk -target %target-triple -emit-library %t/*.swift -o %t/libMultiFile
1920
// RUN: nm %t/libMultiFile | FileCheck %t/check.txt
2021

0 commit comments

Comments
 (0)