Skip to content

Commit

Permalink
fix sftp
Browse files Browse the repository at this point in the history
  • Loading branch information
ladisgin authored and korifey committed Dec 10, 2021
1 parent 277f10c commit 3f4c8a3
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions server/src/building/Linker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,18 @@ Result<Linker::LinkResult> Linker::linkForTarget(const fs::path &target, const f
auto stubSources = stubGen.getStubSources(target);

CollectionUtils::MapFileTo<fs::path> filesToLink;
filesToLink.insert({ objectFile, compilationUnitInfo->kleeFilesInfo->getKleeBitcodeFile() });
for (const auto &sibling : siblings) {
if (sibling != objectFile) {
auto siblingCompilationUnitInfo =
testGen.buildDatabase->getClientCompilationUnitInfo(sibling);
fs::path siblingObjectFile = siblingCompilationUnitInfo->getOutputFile();
fs::path bitcodeFile = testGen.buildDatabase->getBitcodeForSource(
siblingCompilationUnitInfo->getSourcePath());
if (CollectionUtils::contains(stubSources,
siblingCompilationUnitInfo->getSourcePath())) {
bitcodeFile =
LinkerUtils::applySuffix(bitcodeFile, BuildResult::Type::ALL_STUBS, "");
}
filesToLink.emplace(siblingObjectFile, bitcodeFile);
auto siblingCompilationUnitInfo =
testGen.buildDatabase->getClientCompilationUnitInfo(sibling);
fs::path siblingObjectFile = siblingCompilationUnitInfo->getOutputFile();
fs::path bitcodeFile = testGen.buildDatabase->getBitcodeForSource(
siblingCompilationUnitInfo->getSourcePath());
if (CollectionUtils::contains(stubSources,
siblingCompilationUnitInfo->getSourcePath())) {
bitcodeFile =
LinkerUtils::applySuffix(bitcodeFile, BuildResult::Type::ALL_STUBS, "");
}
filesToLink.emplace(siblingObjectFile, bitcodeFile);
}
kleeGenerator->buildByCDb(filesToLink, stubSources);

Expand Down

0 comments on commit 3f4c8a3

Please sign in to comment.