Skip to content

Commit 51f45c4

Browse files
keithcopybara-github
authored andcommitted
Remove --experimental_enable_objc_cc_deps
This was flipped in 2017 Closes #16641. PiperOrigin-RevId: 5556482 Change-Id: I2fba6db5095f144f558fa448ec26b97cef9eb8ea
1 parent 838ee05 commit 51f45c4

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

src/main/java/com/google/devtools/build/lib/rules/objc/MultiArchBinarySupport.java

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

src/main/java/com/google/devtools/build/lib/rules/objc/ObjcCommandLineOptions.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,6 @@ public class ObjcCommandLineOptions extends FragmentOptions {
5757
)
5858
public boolean runMemleaks;
5959

60-
@Option(
61-
name = "experimental_enable_objc_cc_deps",
62-
defaultValue = "true",
63-
documentationCategory = OptionDocumentationCategory.TOOLCHAIN,
64-
metadataTags = {OptionMetadataTag.INCOMPATIBLE_CHANGE},
65-
effectTags = {OptionEffectTag.LOADING_AND_ANALYSIS},
66-
help =
67-
"Allows objc_* rules to depend on cc_library and causes any objc dependencies to be "
68-
+ "built with --cpu set to \"ios_<--ios_cpu>\" for any values in --ios_multi_cpu."
69-
)
70-
public boolean enableCcDeps;
71-
7260
@Option(
7361
name = "experimental_objc_fastbuild_options",
7462
defaultValue = "-O0,-DDEBUG=1",
@@ -167,7 +155,6 @@ public class ObjcCommandLineOptions extends FragmentOptions {
167155
@Override
168156
public FragmentOptions getExec() {
169157
ObjcCommandLineOptions exec = (ObjcCommandLineOptions) getDefault();
170-
exec.enableCcDeps = enableCcDeps;
171158
exec.incompatibleAvoidHardcodedObjcCompilationFlags =
172159
incompatibleAvoidHardcodedObjcCompilationFlags;
173160
exec.incompatibleDisallowSdkFrameworksAttributes = incompatibleDisallowSdkFrameworksAttributes;

0 commit comments

Comments
 (0)