mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
Merge topic 'ninja-intl-paths'
a12050666cTests: Add case for ninja with non-ascii chars02a04dd9c7Ninja: Restore support for non-ascii paths on Windows with ninja<=1.10 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7833
This commit is contained in:
@@ -1030,19 +1030,6 @@ bool cmGlobalNinjaGenerator::OpenBuildFileStreams()
|
||||
return false;
|
||||
}
|
||||
|
||||
// New buffer size 8 MiB
|
||||
constexpr auto buildFileStreamBufferSize = 8 * 1024 * 1024;
|
||||
|
||||
// Ensure the buffer is allocated
|
||||
if (!this->BuildFileStreamBuffer) {
|
||||
this->BuildFileStreamBuffer =
|
||||
cm::make_unique<char[]>(buildFileStreamBufferSize);
|
||||
}
|
||||
|
||||
// Enlarge the internal buffer of the `BuildFileStream`
|
||||
this->BuildFileStream->rdbuf()->pubsetbuf(this->BuildFileStreamBuffer.get(),
|
||||
buildFileStreamBufferSize);
|
||||
|
||||
// Write a comment about this file.
|
||||
*this->BuildFileStream
|
||||
<< "# This file contains all the build statements describing the\n"
|
||||
|
||||
@@ -531,7 +531,6 @@ private:
|
||||
/// The file containing the build statement. (the relationship of the
|
||||
/// compilation DAG).
|
||||
std::unique_ptr<cmGeneratedFileStream> BuildFileStream;
|
||||
std::unique_ptr<char[]> BuildFileStreamBuffer;
|
||||
/// The file containing the rule statements. (The action attached to each
|
||||
/// edge of the compilation DAG).
|
||||
std::unique_ptr<cmGeneratedFileStream> RulesFileStream;
|
||||
|
||||
Reference in New Issue
Block a user