Commit Graph

7 Commits

Author SHA1 Message Date
Keith Smiley
eed76b416e Handle --driver-mode= when using new driver
Previously the driver mode was always set based on the executable name,
ignoring any manually passed flag, now this flag is preferred if it
exists.

Fixes https://github.com/apple/swift/issues/60600
2022-09-20 13:06:24 -07:00
YR Chen
a1df4bad6d [Driver] More robust way of finding subcommand path 2022-04-24 15:11:46 +08:00
YR Chen
029f0bc5c0 [Driver] Fix searching for SwiftDriver on Windows 2022-04-24 15:10:14 +08:00
Ashley Garland
8b916585e5 [Frontend] Forward intent to launch REPL to new driver
Now that the new driver no longer runs the REPL by default
when there are no arguments, the frontend needs to update
its assumption as it is still used to launch the new driver.

rdar://88595293
2022-02-17 12:22:00 -08:00
Tony Allevato
4c298581e6 Propagate response files correctly to the new driver.
If a response file is being passed to the legacy driver
because it is too large to fit on the system's command line,
then it should also be passed when spawning the new driver.
Currently, however, the legacy driver attempts to pass the
*expanded* arguments to the new driver, which can cause the
invocation to fail, requiring the new driver to be disabled
in order to compile.

This change passes the original arguments into `run_driver`
as well as the expanded ones, so that the branch that spawns
the new driver can use the original arguments instead.
2022-02-04 15:33:40 -08:00
Erik Eckstein
3540c01125 rename initializeLibSwift -> InitializeSwiftModules
and some updates in comments.
2021-12-22 11:31:52 +01:00
Xi Ge
515cf21ba3 driver: refactor driver tool logics into a library. NFC 2021-07-13 10:03:12 -07:00