bazel: disable -Wrange-loop-analysis on macOS#17428
Conversation
The version of clang that ships with Xcode 12 has false positives with this warning that might be fixed by https://reviews.llvm.org/D73007 In the meantime we can disable it entirely as discussed on envoyproxy#17393 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
|
cool if this works I will change Homebrew/homebrew-core#81490 to use a patch as this change looks a little hard to do as an inline edit |
|
also if this works, please pick into the 1.18 branch as home-brew will drop 1.17 for 1.18 once 1.19 works 🙇 |
|
I think your |
|
on its own the arg didn't work heh. then I tried removing the line which also didn't work. the latest commit both removes the line from config and adds the arg 🤷 |
|
Ah got it, @codefromthecrypt if you could test this with that patch before we land this that would be great just to verify it covers your case entirely |
|
I will give it a try, sure. by patch, I meant a commit to cherry-pick, but I can probably find a way to embed a patch. Regardless, it will take 5 hours to find out if it works or not after applying it. |
|
ok the patch is here. again it will likely be +5hrs to figure out if it works Homebrew/homebrew-core#81490 |
|
this works, though there are serious build performance issues that should be addressed at some point |
Great to hear! You mean on the homebrew side? |
|
@mattklein123 i think this is ready to go then! |
|
@keith I mean the build takes 5-8 hrs on a GHA runner. probably there is something that can be optimized. possibly less annoying if there was a way to know if lint would fail sooner also |
Unfortunately probably not. Building everything just takes a really long time on slow machines. There are 2 options:
|
|
thanks for the context, @mattklein123. I'm hearing any optimizations like memory or how I/O works in the build steps are explored at this point. It is down to doing less or having something faster do it. got it. homebrew core recipes require building from source, so it actually wouldn't benefit from another option which is to share existing builds (via tarballs #16830), so that less folks need to actually build it. |
|
for context also it isn't so much about slow machines either. ex I have the latest and greatest MacBook and the formula takes over an hour and angrily buzzing. It is just that slower/shared/virt hosts typically used in CI are far worse and less reliable. Part of this is what you are used to.. ex if >1hr is considered slow EOF as ack my comments are wandering this issue |
The version of clang that ships with Xcode 12 has false positives with this warning that might be fixed by https://reviews.llvm.org/D73007 In the meantime we can disable it entirely as discussed on envoyproxy#17393 Signed-off-by: Keith Smiley <keithbsmiley@gmail.com>
The version of clang that ships with Xcode 12 has false positives with
this warning that might be fixed by https://reviews.llvm.org/D73007
In the meantime we can disable it entirely as discussed on
#17393
Signed-off-by: Keith Smiley keithbsmiley@gmail.com