diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-08-31 15:53:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-12-02 18:01:21 (GMT) |
commit | 21b9fb1e8c7348ac4493f4fc245a3c5c5828d2d3 (patch) | |
tree | 4347424a86a7e8e6fb39faedd425676f22ceb849 /Help/dev | |
parent | 9c662246684bf649899228d02705440fa4480558 (diff) | |
download | CMake-21b9fb1e8c7348ac4493f4fc245a3c5c5828d2d3.zip CMake-21b9fb1e8c7348ac4493f4fc245a3c5c5828d2d3.tar.gz CMake-21b9fb1e8c7348ac4493f4fc245a3c5c5828d2d3.tar.bz2 |
cmCxxModuleMapper: support the `clang` module map format
Diffstat (limited to 'Help/dev')
-rw-r--r-- | Help/dev/experimental.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Help/dev/experimental.rst b/Help/dev/experimental.rst index 03eb076..83e3c11 100644 --- a/Help/dev/experimental.rst +++ b/Help/dev/experimental.rst @@ -77,9 +77,9 @@ For compilers that generate module maps, tell CMake as follows: set(CMAKE_EXPERIMENTAL_CXX_MODULE_MAP_FLAG "${compiler_flags_for_module_map} -fmodule-mapper=<MODULE_MAP_FILE>") -Currently, the only supported formats are ``gcc`` and ``msvc``. The ``gcc`` -format is described in the GCC documentation, but the relevant section for the -purposes of CMake is: +Currently, the only supported formats are, ``clang``, ``gcc``, and ``msvc``. +The ``gcc`` format is described in the GCC documentation, but the relevant +section for the purposes of CMake is: A mapping file consisting of space-separated module-name, filename pairs, one per line. Only the mappings for the direct imports and any @@ -94,6 +94,9 @@ The ``msvc`` format is a response file containing flags required to compile any module interfaces properly as well as find any required files to satisfy ``import`` statements as required for Microsoft's Visual Studio toolchains. +Similarly, the ``clang`` format is a response file containing flags using +Clang's module flags. + .. _`D1483r1`: https://mathstuf.fedorapeople.org/fortran-modules/fortran-modules.html .. _`P1689r5`: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1689r5.html .. _`cxx-modules-sandbox`: https://github.com/mathstuf/cxx-modules-sandbox |