Commit e565053b authored by Daan De Meyer's avatar Daan De Meyer
Browse files

Ninja: Remove unnecessary newlines in compile commands

parent 5d4bab50
......@@ -1009,7 +1009,7 @@ void cmGlobalNinjaGenerator::AddCXXCompileCommand(
// Get a stream where to generate things.
this->CompileCommandsStream =
cm::make_unique<cmGeneratedFileStream>(buildFilePath);
*this->CompileCommandsStream << "[";
*this->CompileCommandsStream << "[\n";
} else {
*this->CompileCommandsStream << "," << std::endl;
}
......@@ -1021,7 +1021,7 @@ void cmGlobalNinjaGenerator::AddCXXCompileCommand(
}
/* clang-format off */
*this->CompileCommandsStream << "\n{\n"
*this->CompileCommandsStream << "{\n"
<< R"( "directory": ")"
<< cmGlobalGenerator::EscapeJSON(buildFileDir) << "\",\n"
<< R"( "command": ")"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment