Skip to content

Commit

Permalink
Fix conflicting actions error when specifying --host_macos_minimum_os
Browse files Browse the repository at this point in the history
The flag was introduced in bazelbuild#13001 but not usable internally, because
the host flag was not saved when doing a transition.  Host flags
should be saved, like in:

https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/rules/cpp/CppOptions.java#L1212

PiperOrigin-RevId: 435091962
  • Loading branch information
googlewalt authored and copybara-github committed Mar 16, 2022
1 parent 1b2cf8d commit b8a2ee2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,9 @@ public FragmentOptions getHost() {
host.applePlatforms = applePlatforms;
host.incompatibleUseToolchainResolution = incompatibleUseToolchainResolution;

// Save host option for further use.
host.hostMacosMinimumOs = hostMacosMinimumOs;

return host;
}

Expand Down

0 comments on commit b8a2ee2

Please sign in to comment.