-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BLD: add warn-error option, adds -Werror to compiler #14527
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
Conversation
This relates to build enhancements in #14518 which hides the compiler output from |
@@ -106,6 +106,8 @@ def main(argv): | |||
help="Debug build") | |||
parser.add_argument("--parallel", "-j", type=int, default=0, | |||
help="Number of parallel jobs during build") | |||
parser.add_argument("--warn-error", action="store_true", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about making this true by default, that will be very annoying since the build isn't clean right now in many cases. And you can't expect everyone to go fix these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
store_true
means the default value is False
, and when they add the --warn-error
flag the value changes to True
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, never mind. been confused by that one before
The CI fail is not related, should I rebase to clear it? |
842175c
to
05bed28
Compare
LGTM, merged. Thanks @mattip |
Adds the -Werror compiler option to build, build_clib and build_ext sub-commands. Can be used with
CC=clang
to try out the clang compiler and see the errors