Skip to content

Commit 2dc8709

Browse files
author
Samat Gaynutdinov
committed
fix BCForKLEE.mk
1 parent 90d1d38 commit 2dc8709

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/KleeGenerator.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,16 @@ Result<fs::path> KleeGenerator::defaultBuild(const fs::path &hintPath,
202202
command.setOutput(bitcodeFilePath);
203203

204204
printer::DefaultMakefilePrinter makefilePrinter;
205-
makefilePrinter.declareTarget("build", {command.getSourcePath()}, {command.toStringWithChangingDirectory()});
205+
auto printingCommand = utbot::CompileCommand(command, true);
206+
makefilePrinter.declareTarget("build", {printingCommand.getSourcePath()}, {printingCommand.toStringWithChangingDirectory()});
206207
fs::path makefile = projectTmpPath / "BCForKLEE.mk";
207208
FileSystemUtils::writeToFile(makefile, makefilePrinter.ss.str());
208209

209210
auto makefileCommand = MakefileUtils::MakefileCommand(projectContext, makefile, "build");
210211
auto [out, status, _] = makefileCommand.run();
211212
if (status != 0) {
212213
LOG_S(ERROR) << "Compilation for " << sourceFilePath << " failed.\n"
213-
<< "Command: \"" << command.toString() << "\"\n"
214+
<< "Command: \"" << printingCommand.toString() << "\"\n"
214215
<< "Directory: " << buildDirPath << "\n"
215216
<< out << "\n";
216217
return out;

0 commit comments

Comments
 (0)