-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Fix macOS warnings for zstd-jni #12443
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
|
Ideally this would be conditional on clang instead I guess? |
|
Thank you! Happy to merge this when presubmits pass. Unfortunately I don't know how to use compiler specific cflags. :/ @oquenchil Any idea? |
|
Envoy uses: config_setting(
name = "clang_build",
flag_values = {
"@bazel_tools//tools/cpp:compiler": "clang",
},
)But testing this quickly on macOS this doesn't seem to work |
|
Where is the error log? It looks like all presubmits are passing. That compiler target is here . By looking at the Starlark implementation of the rule, it looks like it takes the compiler string as is, it might be that on macOS is not just clang but something slightly different. |
|
There isn't an error when I use that config it just doesn't match on macOS and the warnings are still produced in the console |
63dba0f to
2315f51
Compare
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
The option used here was gcc specific. This adds the relevant clang option.
2315f51 to
fa3fcd5
Compare
|
This becomes obsolete after the revert. |
The option used here was gcc specific. This adds the relevant clang
option.
Fixes #12461