Skip to content

Minor clean-up of -assert-config option handling. #1295

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
merged 1 commit into from
Feb 13, 2016
Merged

Minor clean-up of -assert-config option handling. #1295

merged 1 commit into from
Feb 13, 2016

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Feb 12, 2016

  • Replace 'Fast' with 'Unchecked' everywhere.
  • Update the help text to specify DisableReplacement rather than
    Replacement and to document Unchecked.
  • Simplify tests slightly and add a tests for Unchecked.

* Replace 'Fast' with 'Unchecked' everywhere.
* Update the help text to specify DisableReplacement rather than
  Replacement and to document Unchecked.
* Simplify tests slightly and add a tests for Unchecked.
@rudkx rudkx self-assigned this Feb 12, 2016
@rudkx
Copy link
Contributor Author

rudkx commented Feb 12, 2016

@swift-ci Please test

@aschwaighofer @jrose-apple Is there any reason -assert-config=Fast was left undocumented or any real chance changing it to -assert-config=Unchecked will break anything at this point?

@jrose-apple
Copy link
Contributor

In theory we're not supposed to change Driver options; they're part of the compiler's stable interface. In practice I think this flag is rare enough that it's okay…but then I'd rather take it out of the driver altogether, and just make it a frontend option. (Either we think it's important for users, or we don't.)

@gribozavr, any thoughts?

@gribozavr
Copy link
Contributor

We could keep a backwards compatibility alias if you want to be extra safe, but I believe this particular option won't cause issues.

@rudkx
Copy link
Contributor Author

rudkx commented Feb 13, 2016

I considered making it a frontend option but then noticed posts around the web talking about using --assert-config=Debug with release builds and figured that would probably break someone. I couldn't find any examples of people talking about using --assert-config=Fast, perhaps because it wasn't documented.

rudkx added a commit that referenced this pull request Feb 13, 2016
Minor clean-up of -assert-config option handling.
@rudkx rudkx merged commit 97d0756 into swiftlang:master Feb 13, 2016
@jrose-apple
Copy link
Contributor

Okay, let's try to never do this again. :-)

@rudkx rudkx deleted the assert-config branch March 10, 2016 15:14
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.

3 participants