diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2024-05-16 13:52:38 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2024-05-16 13:54:16 (GMT) |
commit | 9e2f31ec23ec982d9ad67ab18284b28ce01930a1 (patch) | |
tree | f890c2e9868e8dad470ad80582067700b4bda277 /Source/cmCxxModuleMapper.cxx | |
parent | 9f7ec4c297b80079d0f39de48e55453cdcc987e4 (diff) | |
download | CMake-9e2f31ec23ec982d9ad67ab18284b28ce01930a1.zip CMake-9e2f31ec23ec982d9ad67ab18284b28ce01930a1.tar.gz CMake-9e2f31ec23ec982d9ad67ab18284b28ce01930a1.tar.bz2 |
cmCxxModuleMapper: add a query for the open mode for the modmap
GCC (MinGW) wants to use `\n` on Windows too.
Fixes: #25974
Diffstat (limited to 'Source/cmCxxModuleMapper.cxx')
-rw-r--r-- | Source/cmCxxModuleMapper.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmCxxModuleMapper.cxx b/Source/cmCxxModuleMapper.cxx index b6b9540..4b2aec7 100644 --- a/Source/cmCxxModuleMapper.cxx +++ b/Source/cmCxxModuleMapper.cxx @@ -434,3 +434,17 @@ std::string CxxModuleMapContent(CxxModuleMapFormat format, assert(false); return {}; } + +CxxModuleMapMode CxxModuleMapOpenMode(CxxModuleMapFormat format) +{ + switch (format) { + case CxxModuleMapFormat::Gcc: + return CxxModuleMapMode::Binary; + case CxxModuleMapFormat::Clang: + case CxxModuleMapFormat::Msvc: + return CxxModuleMapMode::Default; + } + + assert(false); + return CxxModuleMapMode::Default; +} |