[clang] [clang][driver] Support `--precompile` and `-fmodule-*` options in Clang-CL (PR #98761)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 16 18:46:04 PDT 2024
================
@@ -398,6 +398,13 @@ BMIs cannot be shipped in an archive to create a module library. Instead, the
BMIs(``*.pcm``) are compiled into object files(``*.o``) and those object files
are added to the archive instead.
+clang-cl
+~~~~~~~~
+
+``clang-cl`` supports the same options as ``clang++`` for modules as detailed above;
+there is no need to prefix these options with ``/clang:``. Note that ``cl.exe``
+options to emit `IFC files <https://devblogs.microsoft.com/cppblog/using-cpp-modules-in-msvc-from-the-command-line-part-1/>` are *not* supported. The precompiled modules are also not compatible for use with ``cl.exe``.
----------------
ChuanqiXu9 wrote:
I'd like to add a statement to give suggestion for build systems:
It may be something like (You can reword it)
```
The build systems are suggested to use the option here for `clang-cl` instead of `cl.exe`.
```
https://github.com/llvm/llvm-project/pull/98761
More information about the cfe-commits
mailing list