@@ -465,14 +465,7 @@ public static ImmutableMap<String, BuildOptions> handleApplePlatforms(
465465
466466 // The cpu flag will be set by platform mapping if a mapping exists.
467467 splitOptions .get (PlatformOptions .class ).platforms = ImmutableList .of (platform );
468- if (splitOptions .get (ObjcCommandLineOptions .class ).enableCcDeps ) {
469- // Only set the (CC-compilation) configs for dependencies if explicitly required by the
470- // user.
471- // This helps users of the iOS rules who do not depend on CC rules as these config values
472- // require additional flags to work (e.g. a custom crosstool) which now only need to be
473- // set if this feature is explicitly requested.
474- setAppleCrosstoolTransitionPlatformConfiguration (buildOptions , splitOptions , platform );
475- }
468+ setAppleCrosstoolTransitionPlatformConfiguration (buildOptions , splitOptions , platform );
476469 AppleCommandLineOptions appleCommandLineOptions =
477470 splitOptions .get (AppleCommandLineOptions .class );
478471 // Set the configuration distinguisher last, as the method
@@ -604,13 +597,7 @@ public static ImmutableMap<String, BuildOptions> handleAppleCpus(
604597 appleCommandLineOptions .appleSplitCpu = cpu ;
605598
606599 String platformCpu = ApplePlatform .cpuStringForTarget (platformType , cpu );
607- if (splitOptions .get (ObjcCommandLineOptions .class ).enableCcDeps ) {
608- // Only set the (CC-compilation) CPU for dependencies if explicitly required by the user.
609- // This helps users of the iOS rules who do not depend on CC rules as these CPU values
610- // require additional flags to work (e.g. a custom crosstool) which now only need to be
611- // set if this feature is explicitly requested.
612- setAppleCrosstoolTransitionCpuConfiguration (buildOptions , splitOptions , platformCpu );
613- }
600+ setAppleCrosstoolTransitionCpuConfiguration (buildOptions , splitOptions , platformCpu );
614601 // Set the configuration distinguisher last, as setAppleCrosstoolTransitionCpuConfiguration
615602 // will set this value to the Apple CROSSTOOL configuration distinguisher, and we want to make
616603 // sure it's set for the right platform instead in this split transition.
0 commit comments