Skip to content

Commit 1699202

Browse files
committed
return isAutoTarget
1 parent b571cf1 commit 1699202

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/building/TargetBuildDatabase.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ TargetBuildDatabase::TargetBuildDatabase(BuildDatabase *baseBuildDatabase, const
99
if (Paths::isSourceFile(targetOrSourcePath)) {
1010
target = baseBuildDatabase->getRootForSource(targetOrSourcePath);
1111
} else if (targetOrSourcePath == GrpcUtils::UTBOT_AUTO_TARGET_PATH || targetOrSourcePath.empty()) {
12-
isAutoTarget = true;
1312
target = baseBuildDatabase->getRootForFirstSource();
1413
} else {
1514
auto new_target = GenerationUtils::findTarget(baseBuildDatabase->getAllTargets(), targetOrSourcePath);
@@ -22,6 +21,8 @@ TargetBuildDatabase::TargetBuildDatabase(BuildDatabase *baseBuildDatabase, const
2221

2322
LOG_S(INFO) << StringUtils::stringFormat("Chosen target: %s", target);
2423

24+
isAutoTarget = target == GrpcUtils::UTBOT_AUTO_TARGET_PATH;
25+
2526
{
2627
auto objectFilesList = baseBuildDatabase->getArchiveObjectFiles(target);
2728
for (const auto &objectFilePath: objectFilesList) {

0 commit comments

Comments
 (0)