Commit Graph

12 Commits

Author SHA1 Message Date
David Zarzycki
5dcc32f98f Remove all uses of -force-single-frontend-invocation
The `-force-single-frontend-invocation` flag predates WMO and is now an
alias for `-whole-module-optimization`. We should use the latter and let
the former fade into history.
2020-05-08 06:37:41 -04:00
Jason Mittertreiner
4e0b092fbe Fixing Driver tests on Windows (#20209) 2018-12-10 18:27:37 -08:00
Dmitri Gribenko
486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00
Dmitri Gribenko
55864d10cb Tests: use 'mkdir -p' 2016-09-02 21:36:45 -07:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Dmitri Gribenko
a30f90c965 CMake: move tricky code from CMake to Python
Removing an abstraction boundary also allowed me to fix a bug where we
could not run long tests in optimized mode, which prevented us from
being able to mark executable tests as long.
2016-06-06 01:02:03 -07:00
Dmitri Gribenko
1ce495f5f1 Mark two expensive tests with long_test 2016-06-05 18:22:17 -07:00
Jordan Rose
ff373e901f [test] Fix validation-test/Driver/many-inputs.swift differently.
It turns out the problem was with the full length of the argument list
in characters (bytes), not just the /number/ of arguments. Defeat this
by using paths relative to the temporary directory we're using.

rdar://problem/25617239, hopefully for the last time.
2016-04-11 10:08:43 -07:00
Jordan Rose
76ab68bdeb [test] Remove testing code. 2016-04-08 17:06:01 -07:00
Jordan Rose
3a47e7cfec [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
2016-04-08 16:56:21 -07:00
Jordan Rose
f39273b2fd [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
2016-04-08 10:43:34 -07:00
Jordan Rose
ad945426a0 Teach the frontend about -filelist for input files.
With this, we're out of the business of passing large numbers of input
files on the command line to the frontend, which means we no longer
overflow argv with a mere 1100 input files under whole-module optimization.

In order to make sure this doesn't happen again, I'd like to also get
this working for
- swiftmodule inputs to the merge-module build phase
- /output/ files for multithreading single-frontend builds (WMO)
- object file inputs to the linker on OS X (response files for binutils
  ld have different quoting rules)

Part 3 of https://bugs.swift.org/browse/SR-280.
2016-01-12 19:20:50 -08:00