Skip to content

Commit

Permalink
Flip --experimental_cc_implementation_deps
Browse files Browse the repository at this point in the history
This allows distributing libraries as source that use
`implementation_deps`.

Closes #19724.

PiperOrigin-RevId: 571105562
Change-Id: I268c5aa0fd83b220aa85dbeb6eef6a07f6b7d3f7
  • Loading branch information
thii authored and Copybara-Service committed Oct 5, 2023
1 parent 5807c59 commit 05787f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -1031,7 +1031,7 @@ public Label getMemProfProfileLabel() {

@Option(
name = "experimental_cc_implementation_deps",
defaultValue = "false",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
effectTags = {
OptionEffectTag.LOADING_AND_ANALYSIS,
Expand Down
Expand Up @@ -2061,7 +2061,7 @@ public void testImplementationDepsConfigurationHostSucceeds() throws Exception {
}

@Test
public void testImplementationDepsFailsWithoutFlag() throws Exception {
public void testImplementationDepsSucceedsWithoutFlag() throws Exception {
if (!analysisMock.isThisBazel()) {
return;
}
Expand All @@ -2077,9 +2077,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
Expand Down

0 comments on commit 05787f3

Please sign in to comment.