Skip to content

Add build-script -a/-A to control assertions #25063

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
May 26, 2019

Conversation

beccadax
Copy link
Contributor

This PR adds two short equivalents of current long flags: -a is short for --assertions, while -A is short for --no-assertions. The assertion setting is critical for testing performance, so it really ought to be easy to specify.

With this change, common configurations like "release-debug, no assertions" can be specified with build-script -rA.

These are super-important in certain circumstances, paritculalry benchmarking, and deserve a shorthand.
@beccadax beccadax requested a review from gottesmm May 25, 2019 20:42
@beccadax
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@gottesmm gottesmm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks beautiful! Good idea!

@gottesmm gottesmm merged commit e0b220c into swiftlang:master May 26, 2019
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.

2 participants