Combination of Apple toolchain and java change leading to test failures #17762
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-CPP
Issues for C++ rules
team-Rules-Java
Issues for Java rules
type: bug
The combination of #16619 and #16960 lead to some test failures in bazel itself when building targets that depend on the
darwin_universal_binary
rule added in java PR.The failure looks like this:
And is caused by the fact that if you want to build non-host platform macOS binaries you must use the new toolchain that lives in the apple_support repo, which bazel does not. I don't have full context on the java issue so I wanted to file this to discuss possible solutions. I see at least 2 options:
-target
flags, which are just not passed and the compiler picks the default todayI wonder if this change #17547 also would help with that.
I'm happy to take on the changes here soon so we can ideally avoid reverts, but I'm hoping for some feedback before choosing a path here.
// @googlewalt, @comius, @hvadehra
The text was updated successfully, but these errors were encountered: