Files
clang-p2996/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp
Jan Svoboda 17ec9d1f6b [clang][deps] Don't emit -fmodule-map-file=
During explicit modules build, when all modules are provided via `-fmodule-file=<path>` and implicit modules and implicit module maps are disabled (`-fno-implicit-modules`, `-fno-implicit-module-maps`), we don't need to load the original module map files at all. This patch stops emitting the `-fmodule-map-file=` arguments we don't need, saving some compilation time due to avoiding parsing such module maps and making the command line shorter.

Reviewed By: bnbarham

Differential Revision: https://reviews.llvm.org/D113473
2021-11-18 12:31:24 +01:00

5.9 KiB