Skip to content

Handle --driver-mode= when using new driver #61209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

keith
Copy link
Member

@keith keith commented Sep 20, 2022

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 #60600

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 swiftlang#60600
@keith
Copy link
Member Author

keith commented Sep 20, 2022

I'm not sure exactly how to make the tests cover this case because of this logic:

https://github.com/apple/swift/blob/804e3f096813e38886bac70ac136caf61adb0559/test/lit.cfg#L758-L764

I verified locally by setting SWIFT_FORCE_TEST_NEW_DRIVER that they do pass, since this test https://github.com/apple/swift/blob/804e3f096813e38886bac70ac136caf61adb0559/test/Driver/driver_mode.swift covers this behavior, and previously failed with this environment variable set.

@keith
Copy link
Member Author

keith commented Sep 20, 2022

@swift-ci please test

1 similar comment
@keith
Copy link
Member Author

keith commented Sep 28, 2022

@swift-ci please test

@keith
Copy link
Member Author

keith commented Sep 28, 2022

@swift-ci please smoke test

@keith
Copy link
Member Author

keith commented Sep 28, 2022

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit ea21d79 into swiftlang:main Sep 28, 2022
@keith keith deleted the ks/handle-driver-mode-when-using-new-driver branch September 28, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--driver-mode= ignored with swift-driver
2 participants