-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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: various improvements #83017
llvm: various improvements #83017
Conversation
On Linux:
Enabling the bootstrap on Linux might have to wait until we switch to Ubuntu 18.04. |
Formula/llvm.rb
Outdated
sdk = MacOS.sdk_path_if_needed | ||
# gcc-5 fails at building compiler-rt. Enable PGO | ||
# build on Linux when we switch to Ubuntu 18.04. | ||
pgo_build = false | ||
on_macos do | ||
args << "-DLLVM_BUILD_LLVM_C_DYLIB=ON" | ||
args << "-DLLVM_ENABLE_LIBCXX=ON" | ||
args << "-DLLVM_CREATE_XCODE_TOOLCHAIN=#{MacOS::Xcode.installed? ? "ON" : "OFF"}" |
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.
This will always be ON
on CI I think
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.
Do you mean LLVM_CREATE_XCODE_TOOLCHAIN
? That's true. I'll move it out of the on_macos
block so we don't need to declare it in two places.
1. Add patch to fix parallel builds on ARM. 2. Clean up some duplication 3. Install the `lit` command line tool 4. Install Vim editor integration The `lit` tool adds very little to the bottle size, and it seems some users might find it useful. Let's install it directly using Python to avoid having to set `LLVM_INCLUDE_TESTS` to `ON`, as that has many other side-effects that we don't need or want. This is also how Arch installs `lit`. [1] Closes Homebrew#82479. [1] https://github.com/archlinux/svntogit-packages/blob/5e7a8f09f53d0fb19c0680bb5b4691b1c6a78ad1/trunk/PKGBUILD#L79-L82
I don't want to waste too much time hunting this down right now, but I'm puzzled as to why this fails when we are actually building |
That's not true -- we've never built |
Linux runner timed out at testing dependents. This probably needs to be run on the self-hosted runner now. |
I think it'll be good to wait until Homebrew/brew#10769 is merged for this, as it'll be useful to rebuild Also, I should probably write a proper test for |
Incorporated into #84364. |
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 --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?Enable bootstrap build on Linux. This fails withgcc-5
. Let's try again when we switch to Ubuntu 18.04.lit
command line toolThe
lit
tool adds very little to the bottle size, and it seems someusers might find it useful. Let's install it directly using Python to
avoid having to set
LLVM_INCLUDE_TESTS
toON
, as that has many otherside-effects that we don't need or want. This is also how Arch installs
lit
. [1]Closes #82479.
[1] https://github.com/archlinux/svntogit-packages/blob/5e7a8f09f53d0fb19c0680bb5b4691b1c6a78ad1/trunk/PKGBUILD#L79-L82