You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove explicitly set target platform value and replace it by fallback.
The original value for the target platform was set at the dawn of time when we didn't have auto-calculation for it yet. Now that we do the explicit setting interferes with platform mapping which assumes that the target platform value is empty unless the user explicitly requests otherwise.
This change introduces a new flag, --target_platform_fallsback which can be used to set the fallback in case there is no matching mapping. Because it uses the old defaults no behavioral change should be observed as long as no mappings exist.
Step 5/N towards the platforms mapping functionality for bazelbuild/bazel#6426
RELNOTES: None.
PiperOrigin-RevId: 241031610
Copy file name to clipboardexpand all lines: dataset/GitHub_Java/bazelbuild.bazel/src/main/java/com/google/devtools/build/lib/analysis/PlatformOptions.java
+1
Original file line number
Diff line number
Diff line change
@@ -183,6 +183,7 @@ public class PlatformOptions extends FragmentOptions {
183
183
184
184
@Option(
185
185
name = "incompatible_use_toolchain_resolution_for_java_rules",
Copy file name to clipboardexpand all lines: dataset/GitHub_Java/bazelbuild.bazel/src/test/java/com/google/devtools/build/lib/skyframe/PlatformMappingFunctionTest.java
Copy file name to clipboardexpand all lines: dataset/GitHub_Java/bazelbuild.bazel/src/test/java/com/google/devtools/build/lib/skyframe/PlatformMappingValueTest.java
0 commit comments