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
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -398,6 +398,13 @@ 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 `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``.
407
+
401
408
Consistency Requirements
402
409
~~~~~~~~~~~~~~~~~~~~~~~~
403
410
@@ -1176,12 +1183,12 @@ have ``.cppm`` (or ``.ccm``, ``.cxxm``, ``.c++m``) as the file extension.
1176
1183
However, the behavior is inconsistent with other compilers. This is tracked by
0 commit comments