-
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
XcodeConfigInfo.macosMinimumOsVersion is incorrectly set for host configuration #12988
Comments
I think the issue is that the minimum version isn't set for the host configuration here? bazel/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java Lines 456 to 468 in 660f5b2
But maybe that's intentional |
If it's intentional, could we get a |
I just realized this might be semi-intentional, since we only need to support a minimum OS of the host, not any lower. In my example though, by using Xcode 12.4, the |
To ensure caching across developers even this isn't particularly true is it? I get that you won't back deploy the binary directly, but it could result in a different output |
True. So then I would want to set a minimum OS version that might be lower than the OS version of the host. |
This flag makes sure we set the minimum macOS version when compiling host tools. Otherwise you can end up not sharing caches across different OS versions. Fixes bazelbuild#12988
cc @susinmotion Any thoughts on #13001? |
It's in good hands with trybka and allevato! |
This flag makes sure we set the minimum macOS version when compiling host tools. Otherwise you can end up not sharing caches across different OS versions. Fixes bazelbuild#12988
This flag makes sure we set the minimum macOS version when compiling host tools. Otherwise you can end up not sharing caches across different OS versions. Fixes bazelbuild#12988
This flag makes sure we set the minimum macOS version when compiling host tools. Otherwise you can end up not sharing caches across different OS versions. Fixes bazelbuild#12988
Description of the problem / feature request:
When building a target with the host configuration, the
macosMinimumOsVersion
is being set to the SDK version instead of what is set for--macos_minimum_os
. The relevant lines are:bazel/src/main/java/com/google/devtools/build/lib/rules/apple/XcodeConfig.java
Lines 149 to 152 in 24c980b
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Build a
genrule
that has aswift_binary
tool
, with--macos_minimum_os
lower than the SDK version (say10.15
when using Xcode 12.4.0, which has its SDK version at11.1
). The tool will have an incorrect-target
(x86_64-apple-macosx11.1
for the example given).What operating system are you running Bazel on?
macOS 11.2.1
What's the output of
bazel info release
?release 4.0.0
Have you found anything relevant by searching the web?
Nothing.
The text was updated successfully, but these errors were encountered: