Skip to content

Commit

Permalink
[7.0.0] Flip --incompatible_disable_objc_library_transition (#20082)
Browse files Browse the repository at this point in the history
RELNOTES[INC]: transition is removed from objc_library
(#19688)

(cherry picked from commit b4292d2)

Co-authored-by: Googler <[email protected]>
  • Loading branch information
keith and comius authored Nov 10, 2023
1 parent 9e1fc51 commit 06352cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ public final class BuildLanguageOptions extends OptionsBase {

@Option(
name = "incompatible_disable_objc_library_transition",
defaultValue = "false",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS,
effectTags = {OptionEffectTag.BUILD_FILE_SEMANTICS},
metadataTags = {OptionMetadataTag.INCOMPATIBLE_CHANGE},
Expand Down Expand Up @@ -879,7 +879,7 @@ public StarlarkSemantics toStarlarkSemantics() {
public static final String INCOMPATIBLE_OBJC_PROVIDER_REMOVE_LINKING_INFO =
"-incompatible_objc_provider_remove_linking_info";
public static final String INCOMPATIBLE_DISABLE_OBJC_LIBRARY_TRANSITION =
"-incompatible_disable_objc_library_transition";
"+incompatible_disable_objc_library_transition";
public static final String INCOMPATIBLE_FAIL_ON_UNKNOWN_ATTRIBUTES =
"+incompatible_fail_on_unknown_attributes";
public static final String INCOMPATIBLE_ENABLE_PROTO_TOOLCHAIN_RESOLUTION =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
import java.util.Map;
import java.util.regex.Pattern;
import javax.annotation.Nullable;
import org.junit.Before;

/**
* Superclass for all Obj-C rule tests.
Expand All @@ -89,6 +90,11 @@ public abstract class ObjcRuleTestCase extends BuildViewTestCase {

protected static final String OUTPUTDIR = TestConstants.PRODUCT_NAME + "-out//bin";

@Before
public void setUp() throws Exception {
setBuildLanguageOptions("--noincompatible_disable_objc_library_transition");
}

/** Specification of code coverage behavior. */
public enum CodeCoverageMode {
// No code coverage information.
Expand Down

0 comments on commit 06352cb

Please sign in to comment.