File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/main/java/com/google/devtools/build/lib/buildtool Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ public String getSymlinkPrefix(String productName) {
344344 // To be made a no-op and deleted once new symlink behavior is battle-tested.
345345 @ Option (
346346 name = "use_top_level_targets_for_symlinks" ,
347- defaultValue = "false " ,
347+ defaultValue = "true " ,
348348 documentationCategory = OptionDocumentationCategory .UNDOCUMENTED ,
349349 effectTags = {OptionEffectTag .AFFECTS_OUTPUTS },
350350 help =
Original file line number Diff line number Diff line change @@ -726,6 +726,7 @@ private ImmutableList<ConvenienceSymlink> createConvenienceSymlinks(
726726 // Gather configurations to consider.
727727 Set <BuildConfigurationValue > targetConfigurations =
728728 buildRequestOptions .useTopLevelTargetsForSymlinks ()
729+ && !analysisResult .getTargetsToBuild ().isEmpty ()
729730 ? analysisResult .getTargetsToBuild ().stream ()
730731 .map (ConfiguredTarget ::getActual )
731732 .map (ConfiguredTarget ::getConfigurationKey )
You can’t perform that action at this time.
0 commit comments