Skip to content

Commit

Permalink
Enable --use_top_level_targets_for_symlinks by default.
Browse files Browse the repository at this point in the history
RELNOTES: Enable --use_top_level_targets_for_symlinks by default.
PiperOrigin-RevId: 454603210
Change-Id: I9bb2f0a46beeff27798b2a6006d5763ae5ff75c7
  • Loading branch information
Googler authored and copybara-github committed Jun 13, 2022
1 parent 54575fb commit 6452024
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public String getSymlinkPrefix(String productName) {
// To be made a no-op and deleted once new symlink behavior is battle-tested.
@Option(
name = "use_top_level_targets_for_symlinks",
defaultValue = "false",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.UNDOCUMENTED,
effectTags = {OptionEffectTag.AFFECTS_OUTPUTS},
help =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ private ImmutableList<ConvenienceSymlink> createConvenienceSymlinks(
// Gather configurations to consider.
Set<BuildConfigurationValue> targetConfigurations =
buildRequestOptions.useTopLevelTargetsForSymlinks()
&& !analysisResult.getTargetsToBuild().isEmpty()
? analysisResult.getTargetsToBuild().stream()
.map(ConfiguredTarget::getActual)
.map(ConfiguredTarget::getConfigurationKey)
Expand Down

0 comments on commit 6452024

Please sign in to comment.