Skip to content

Commit

Permalink
Remove --experimental_enable_objc_cc_deps
Browse files Browse the repository at this point in the history
This was flipped in 2017
  • Loading branch information
keith committed Aug 10, 2023
1 parent c1fb5d7 commit 2a17cc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,14 +465,7 @@ public static ImmutableMap<String, BuildOptions> handleApplePlatforms(

// The cpu flag will be set by platform mapping if a mapping exists.
splitOptions.get(PlatformOptions.class).platforms = ImmutableList.of(platform);
if (splitOptions.get(ObjcCommandLineOptions.class).enableCcDeps) {
// Only set the (CC-compilation) configs for dependencies if explicitly required by the
// user.
// This helps users of the iOS rules who do not depend on CC rules as these config values
// require additional flags to work (e.g. a custom crosstool) which now only need to be
// set if this feature is explicitly requested.
setAppleCrosstoolTransitionPlatformConfiguration(buildOptions, splitOptions, platform);
}
setAppleCrosstoolTransitionPlatformConfiguration(buildOptions, splitOptions, platform);
AppleCommandLineOptions appleCommandLineOptions =
splitOptions.get(AppleCommandLineOptions.class);
// Set the configuration distinguisher last, as the method
Expand Down Expand Up @@ -604,13 +597,7 @@ public static ImmutableMap<String, BuildOptions> handleAppleCpus(
appleCommandLineOptions.appleSplitCpu = cpu;

String platformCpu = ApplePlatform.cpuStringForTarget(platformType, cpu);
if (splitOptions.get(ObjcCommandLineOptions.class).enableCcDeps) {
// Only set the (CC-compilation) CPU for dependencies if explicitly required by the user.
// This helps users of the iOS rules who do not depend on CC rules as these CPU values
// require additional flags to work (e.g. a custom crosstool) which now only need to be
// set if this feature is explicitly requested.
setAppleCrosstoolTransitionCpuConfiguration(buildOptions, splitOptions, platformCpu);
}
setAppleCrosstoolTransitionCpuConfiguration(buildOptions, splitOptions, platformCpu);
// Set the configuration distinguisher last, as setAppleCrosstoolTransitionCpuConfiguration
// will set this value to the Apple CROSSTOOL configuration distinguisher, and we want to make
// sure it's set for the right platform instead in this split transition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ public class ObjcCommandLineOptions extends FragmentOptions {
)
public boolean runMemleaks;

@Option(
name = "experimental_enable_objc_cc_deps",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.TOOLCHAIN,
metadataTags = {OptionMetadataTag.INCOMPATIBLE_CHANGE},
effectTags = {OptionEffectTag.LOADING_AND_ANALYSIS},
help =
"Allows objc_* rules to depend on cc_library and causes any objc dependencies to be "
+ "built with --cpu set to \"ios_<--ios_cpu>\" for any values in --ios_multi_cpu."
)
public boolean enableCcDeps;

@Option(
name = "experimental_objc_fastbuild_options",
defaultValue = "-O0,-DDEBUG=1",
Expand Down Expand Up @@ -167,7 +155,6 @@ public class ObjcCommandLineOptions extends FragmentOptions {
@Override
public FragmentOptions getExec() {
ObjcCommandLineOptions exec = (ObjcCommandLineOptions) getDefault();
exec.enableCcDeps = enableCcDeps;
exec.incompatibleAvoidHardcodedObjcCompilationFlags =
incompatibleAvoidHardcodedObjcCompilationFlags;
exec.incompatibleDisallowSdkFrameworksAttributes = incompatibleDisallowSdkFrameworksAttributes;
Expand Down

0 comments on commit 2a17cc7

Please sign in to comment.