You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/docs/StandardCPlusPlusModules.rst
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -398,6 +398,16 @@ BMIs cannot be shipped in an archive to create a module library. Instead, the
398
398
BMIs(``*.pcm``) are compiled into object files(``*.o``) and those object files
399
399
are added to the archive instead.
400
400
401
+
clang-cl
402
+
~~~~~~~~
403
+
404
+
``clang-cl`` supports the same options as ``clang++`` for modules as detailed above;
405
+
there is no need to prefix these options with ``/clang:``. Note that ``cl.exe``
406
+
`options to emit/consume IFC files <https://devblogs.microsoft.com/cppblog/using-cpp-modules-in-msvc-from-the-command-line-part-1/>` are *not* supported.
407
+
The resultant precompiled modules are also not compatible for use with ``cl.exe``.
408
+
409
+
We recommend that build system authors use the above-mentioned ``clang++`` options with ``clang-cl`` to build modules.
410
+
401
411
Consistency Requirements
402
412
~~~~~~~~~~~~~~~~~~~~~~~~
403
413
@@ -1387,13 +1397,6 @@ have ``.cppm`` (or ``.ccm``, ``.cxxm``, ``.c++m``) as the file extension.
1387
1397
However, the behavior is inconsistent with other compilers. This is tracked by
HelpText<"Build a C++20 Header Unit from a header that should be found in the user (fmodule-header=user) or system (fmodule-header=system) search path.">;
0 commit comments