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
[SR-2400] Add a flag to the driver to continue compiling after errors #45007
Comments
This sounds like a lot of fun, and I'd like to try my hand at implementing it. Feel free to steal the task away from me if I end up taking too long, though 🙂 |
It looks like On the other hand, I think the Clang compiler uses the flag I think the Swift compiler should have a similar flag: |
IIUC |
I forgot it was already mostly there (for migrator reasons). It's mostly just a matter of hooking it all up, I guess! |
Hmm, I tried the following: https://gist.github.com/modocache/2146da57375d772a8ec772f524f0bccf I would have expected the test to pass. That is, compilation would fail on the first file Either |
Hmm... I'm still a little confused as to when the Swift driver continues and when it bails out early – any additional info there would be great. I tried a few test cases and noticed setting |
Additional Detail from JIRA
md5: 946c885263e3b26d1a3de37f1e6144e8
Issue Description:
Currently the Swift driver stops invoking frontend commands as soon as one of them reports an error. This behavior should be controlled by a flag, so that users can choose whether to see all the errors at once or bail out early.
Xcode also has a preference for this, so once this feature is added the Apple folks can have Xcode pass the flag automatically.
The text was updated successfully, but these errors were encountered: