[clang] [clang][deps] Use `ModuleDepCollector` for Make output (PR #182063)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 18 09:03:40 PST 2026


================
@@ -16,7 +16,7 @@ module header1 { header "header.h" }
 [{
   "file": "DIR/modules_cc1.cpp",
   "directory": "DIR",
-  "command": "clang -cc1 DIR/modules_cc1.cpp -fimplicit-module-maps -o modules_cc1.o"
+  "command": "clang -cc1 DIR/modules_cc1.cpp -fmodules -fmodules-cache-path=DIR/cache -fimplicit-module-maps -o modules_cc1.o"
----------------
jansvoboda11 wrote:

This was added to actually run a modular build. Without it, the new implementation would not report the `[[PREFIX]]/module.modulemap` dependency below. The old implementation would report it because we'd automatically parse the module map and invoke the collector callback, even when not building with `-fmodules`.

https://github.com/llvm/llvm-project/pull/182063


More information about the cfe-commits mailing list