-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
llvm 11.0.0 #62798
llvm 11.0.0 #62798
Conversation
Can we add a short test that runs |
|
Lemme see what I can figure out. |
47015ed
to
5f4adeb
Compare
@fxcoudert done in revised 127f06b. Lemme know if it makes sense though since I'm not very proficient in Ruby. |
I still get the |
With LLVM 11? Huh, interesting cause I don't. We'll see if the test case passes in the CI. |
Yep, with LLVM 11, just compiled using your Formula. This is using Xcode 12.2 beta on Big Sur, though. |
If the CI passes fine here, I reckon it'd be a good idea to inform upstream LLVM of the issue on Big Sur. |
Regarding LLVM 11.0.0. They are aware about it AFAIK
|
If there is a patch, we can consider it. But we need to know that it works, that upstream is considering it. |
@jedisct1 @fxcoudert so it seems that my machine must be special, or perhaps I have something (mis)configured in a very special way; the |
The patch is pretty short and simple. If we can confirm that it works, maybe we should include it, no matter if this is the exact code that will eventually get merged upstream. And we can always update the patch later if needed. |
We should really take the upstream patch unless it's impossible and/or upstream is unwilling to fix it. |
a23a5c4
to
8cd1c1c
Compare
I think special big thanks is due to the Homebrew team for working with the Zig folks so quickly and efficiently! It's quite heartening to see it in fact. |
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.
Why was libcxxabi added to the runtimes?
What do you mean? The previous formula already did that however only for HEAD with a note to check when llvm-11 is released. |
Sorry, missed the note... |
Does anyone know if it is possible to apply a series of patches after all |
If you need to patch a resource I believe the patch block works inside the resource block too. Does that help? |
Unfortunately, it won't. The issue here is that we need to have all components in place before we apply the patches. In other words, first, we need to download |
OK, nvm, the hashes of diffs changed after I added |
This commit changes the formula to download only a single archive `llvm-project` (instead of multiple components), and applies unchanged upstream patches to fix the behaviour of `llvm-config --system-libs`. Signed-off-by: Jakub Konka <[email protected]>
What is the problem with CI and llvm-project? |
False alarm :-) I thought we hit the GitHub rate limit but it was my oversight with the hashes of the patches. It should be fixed now. Sorry for confusion! |
Yay, everything passed! I reckon we're good to go if you agree! :-) |
Woo-ooh! |
Many thanks for the collective work on this one! |
I would like to chime in here to point out that the removal of llvm@10 has temporarily broken some users' development environments such as my own. Due to LLVM versions not being fully compatible with each other I pin my environments to specific versions of dependencies and then upgrade them when I have the available time to debug issues that occur due to the upgrade. Right now my environments are pinned by llvm@10 but it's no longer available, preventing me from installing a new environment on another system, or even rolling back if an upgrade to llvm@11 fails. Currently llvm@9, llvm@8, llvm@7, and llvm@6 are already still available which means the removal of llvm@10 also goes against precedence. I would like to propose that older versions of LLVM, and potentially other packages used by developers, are kept around at least for a few months so that the above issues are not encountered by users. |
Although I do admit that maybe I shouldn't be using Homebrew for this particular use case in the first place as it may be out of Homebrew's scope. Users that version pin could just use the official builds directly instead of going through Homebrew. This is what I do on other platforms anyway. |
Our criteria for versioned formulas are set out here: https://docs.brew.sh/Versions |
Thank you for your response. The linked document clearly states that my use case of version pinning is not in Homebrew's scope which means there is no need to add LLVM 10 back. |
Rules change constantly based on new insights. Past results do not guarantee an outcome for the future in the case of Homebrew formulae. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?