-
Notifications
You must be signed in to change notification settings - Fork 4.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
Move Apple toolchain setup to apple_support #16619
Move Apple toolchain setup to apple_support #16619
Conversation
This is failing because rules_cc references the primary file we're deleting here |
This looks reasonable. Can we migrate/update rules_cc to fix this? Ideally rules_cc wouldn't be mac-specific either. |
Yea I definitely can, the problem will be doing that in lockstep, but I guess it's ok since it's breaking either way |
I think the order of operations has to be:
|
@katre ok I moved out all of the apple crosstool setup that I can, and moved it into bazelbuild/apple_support#113 one thing I'm unclear on currently is that I currently have the apple_support using |
The right answer is for non-toolchains users to use That sequencing looks right but we should confirm with @comius. |
I wonder if adding that in our transition would be enough instead of requiring that change on folks before we transition to the workspace way |
it seems like if we could change the default of |
77b53f5
to
6d3b963
Compare
dfb18e0
to
e41a264
Compare
I think this is pretty close to ready, but I can't make CI green until we have a new release of rules_cc, it seems too difficult to correctly override all the tests cases for it at the moment. |
15ba30c
to
6cbc6be
Compare
7b9b078
to
8a12270
Compare
We see a bunch of failures: https://buildkite.com/bazel/google-bazel-presubmit/builds/64142. We're fixing it in the internal import patch, but I want to check whether this should have been caught by bazel presubmits earlier? |
i imagine something broke since i rebased last? |
let me know if you want me to fix on this branch! |
Thanks all! @googlewalt just so I know for the future, are the files you ended up keeping libtool.sh / make_hashed_objlist.py still there because they're used in those paths internally? (since i don't see any external references) |
It looks like this PR is causing a lot of tests to time out in Bazel's postsubmit. @keith Can you take a look? |
I guess we need to increase the test size of those timing out tests, e.g. https://cs.opensource.google/bazel/bazel/+/master:src/test/shell/bazel/BUILD;l=937 But this does indicate that there is a potential performance regression? |
Yes. I suspect we should get rid of that dependency but left the cleanup for another day. |
@meteorcloudy I'll look at this today |
Using this feature isn't supported by the Xcode based toolchain on macOS, and generating a modulemap for the entire macOS SDK takes a huge amount of time. This disables this feature on macOS until there's a better solution to those performance issues. Fixes bazelbuild#16619 (comment)
This change was rollbacked at a50cca5, @zhengwei143 can you provide more details about what was broken? |
I believe @googlewalt is working on a roll forward. |
@googlewalt how's the forward fix looking? |
I just fixed one small remaining issue. Awaiting review @oquenchil. |
Submitted as 699e403. |
Thanks! |
Using this feature isn't supported by the Xcode based toolchain on macOS, and generating a modulemap for the entire macOS SDK takes a huge amount of time. This disables this feature on macOS until there's a better solution to those performance issues. Fixes bazelbuild#16619 (comment)
Followup to #16619. PiperOrigin-RevId: 519183744 Change-Id: I13e4d00d679e1c1150c309264dc5fd3a980eb221
Using this feature isn't supported by the Xcode based toolchain on macOS, and generating a modulemap for the entire macOS SDK takes a huge amount of time. This disables this feature on macOS until there's a better solution to those performance issues. Fixes bazelbuild#16619 (comment)
Using this feature isn't supported by the Xcode based toolchain on macOS, and generating a modulemap for the entire macOS SDK takes a huge amount of time. This disables this feature on macOS until there's a better solution to those performance issues. Fixes #16619 (comment) Closes #17763. PiperOrigin-RevId: 532080490 Change-Id: I96b77eff884fa965ed20084b90b1e0af5b80b082
This moves the CC toolchain for building Apple platforms besides macOS to the apple_support repo bazelbuild/apple_support#113 The default unix toolchain is now used if someone wants to build for macOS without the apple_support toolchain, but it doesn't handle as many platform specific features as the previous toolchain. Fixes bazelbuild#15041 Closes bazelbuild#16619. PiperOrigin-RevId: 515546196 Change-Id: Ia54b53e7093c1edbfe8276730aaed5a11a94a027
Followup to bazelbuild#16619. PiperOrigin-RevId: 519183744 Change-Id: I13e4d00d679e1c1150c309264dc5fd3a980eb221
Using this feature isn't supported by the Xcode based toolchain on macOS, and generating a modulemap for the entire macOS SDK takes a huge amount of time. This disables this feature on macOS until there's a better solution to those performance issues. Fixes bazelbuild#16619 (comment) Closes bazelbuild#17763. PiperOrigin-RevId: 532080490 Change-Id: I96b77eff884fa965ed20084b90b1e0af5b80b082
This moves the CC toolchain for building Apple platforms besides macOS to the apple_support repo bazelbuild/apple_support#113
The default unix toolchain is now used if someone wants to build for macOS without the apple_support toolchain, but it doesn't handle as many platform specific features as the previous toolchain.
Fixes #15041