diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2020-03-22 19:20:33 (GMT) |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2020-03-23 20:34:19 (GMT) |
commit | e565053bced999a90b95693c21dbe368990e01eb (patch) | |
tree | 402ca8aecbea81a143bb35ea79b863c5ce317659 | |
parent | 5d4bab500e93052630163577815695ac3f47ba7b (diff) | |
download | CMake-e565053bced999a90b95693c21dbe368990e01eb.zip CMake-e565053bced999a90b95693c21dbe368990e01eb.tar.gz CMake-e565053bced999a90b95693c21dbe368990e01eb.tar.bz2 |
Ninja: Remove unnecessary newlines in compile commands
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index d58113c..94483ca 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -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": ")" |