[libcxx-commits] [PATCH] D119862: [libc++] Pass -fcxx-modules during our modules builds

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 15 10:13:12 PST 2022


ldionne created this revision.
Herald added a subscriber: arichardson.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Otherwise, AppleClang ignores -fmodules entirely, so we are not actually
testing anything.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119862

Files:
  libcxx/utils/libcxx/test/params.py


Index: libcxx/utils/libcxx/test/params.py
===================================================================
--- libcxx/utils/libcxx/test/params.py
+++ libcxx/utils/libcxx/test/params.py
@@ -76,6 +76,7 @@
             actions=lambda modules: [
               AddFeature('modules-build'),
               AddCompileFlag('-fmodules'),
+              AddCompileFlag('-fcxx-modules'), # AppleClang disregards -fmodules entirely when compiling C++. This enables modules for C++.
             ] if modules else []),
 
   Parameter(name='enable_exceptions', choices=[True, False], type=bool, default=True,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119862.408951.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220215/647843b2/attachment.bin>


More information about the libcxx-commits mailing list