Skip to content

[4.0] Do stricter checking of -D command line arguments #10739

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

jrose-apple
Copy link
Contributor

  • Explanation: Unlike C, Swift only accepts simple identifiers for its -D flags, which are either present or absent. Previously we just silently let these options by; this patch makes the driver emit a warning.
  • Scope: Only people passing invalid options.
  • Issue: SR-2404 / rdar://problem/22157790
  • Reviewed by: me (patch by @erikjv and @CodaFi)
  • Risk: Low. It's just a warning.
  • Testing: Added a compiler regression test.

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple jrose-apple merged commit 63eed0f into swiftlang:swift-4.0-branch Jul 1, 2017
@jrose-apple jrose-apple deleted the 4.0-conditional-surrender branch July 1, 2017 02:55
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