Skip to content

Commit f39273b

Browse files
committed
[test] Avoid use of 'xcrun' in validation-test/Driver/many-inputs.swift.
'xcrun' can also have problems with large numbers of parameters, and it's not what we're testing here. rdar://problem/25617239
1 parent 6cdfc2e commit f39273b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

validation-test/Driver/many-inputs.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
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
66

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

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

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

0 commit comments

Comments
 (0)