diff options
author | Brad King <brad.king@kitware.com> | 2024-05-17 15:16:05 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-05-17 15:16:18 (GMT) |
commit | 76fa2e8f135fa250ce3602cc611c2dff6ff58337 (patch) | |
tree | b8d8dcbf6249377741ac316fbe8ea3eb0ea9450b /Source/cmGlobalNinjaGenerator.cxx | |
parent | 42e8237f357fe7872c4f998afbce87cc61106f63 (diff) | |
parent | 9e2f31ec23ec982d9ad67ab18284b28ce01930a1 (diff) | |
download | CMake-76fa2e8f135fa250ce3602cc611c2dff6ff58337.zip CMake-76fa2e8f135fa250ce3602cc611c2dff6ff58337.tar.gz CMake-76fa2e8f135fa250ce3602cc611c2dff6ff58337.tar.bz2 |
Merge topic 'cxxmodules-gcc-binary-mode'
9e2f31ec23 cmCxxModuleMapper: add a query for the open mode for the modmap
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9525
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index 612af4f..250546f 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -2806,7 +2806,10 @@ bool cmGlobalNinjaGenerator::WriteDyndepFile( // `cmNinjaTargetGenerator::WriteObjectBuildStatements` and // `cmNinjaTargetGenerator::ExportObjectCompileCommand` to generate the // corresponding file path. - cmGeneratedFileStream mmf(cmStrCat(object.PrimaryOutput, ".modmap")); + cmGeneratedFileStream mmf; + mmf.Open(cmStrCat(object.PrimaryOutput, ".modmap"), false, + CxxModuleMapOpenMode(*modmap_fmt) == + CxxModuleMapMode::Binary); mmf.SetCopyIfDifferent(true); mmf << mm; } |