diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppOptions.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppOptions.java index dc34959384ff64..b3f18e30d66e79 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppOptions.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppOptions.java @@ -1108,7 +1108,7 @@ public Label getPropellerOptimizeLabel() { @Option( name = "experimental_cc_implementation_deps", - defaultValue = "false", + defaultValue = "true", documentationCategory = OptionDocumentationCategory.UNDOCUMENTED, effectTags = { OptionEffectTag.LOADING_AND_ANALYSIS, diff --git a/src/test/java/com/google/devtools/build/lib/rules/cpp/CcLibraryConfiguredTargetTest.java b/src/test/java/com/google/devtools/build/lib/rules/cpp/CcLibraryConfiguredTargetTest.java index 1aed4e8659c122..d7d07937963d94 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/cpp/CcLibraryConfiguredTargetTest.java +++ b/src/test/java/com/google/devtools/build/lib/rules/cpp/CcLibraryConfiguredTargetTest.java @@ -2064,7 +2064,7 @@ public void testImplementationDepsConfigurationHostSucceeds() throws Exception { } @Test - public void testImplementationDepsFailsWithoutFlag() throws Exception { + public void testImplementationDepsSucceedsWithoutFlag() throws Exception { if (!analysisMock.isThisBazel()) { return; } @@ -2081,9 +2081,9 @@ public void testImplementationDepsFailsWithoutFlag() throws Exception { " srcs = ['implementation_dep.cc'],", " hdrs = ['implementation_dep.h'],", ")"); - reporter.removeHandler(failFastHandler); - getConfiguredTarget("//foo:lib"); - assertContainsEvent("requires --experimental_cc_implementation_deps"); + assertThat(getConfiguredTarget("//foo:lib")).isNotNull(); + ; + assertDoesNotContainEvent("requires --experimental_cc_implementation_deps"); } @Test