Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I sometimes need to debug builds by disabling modules. This behavior will make debugging easier.
clang/test/Driver/modules.m | ||
---|---|---|
77–78 | You may combine -fmodule-map-file=module.modulemap with this RUN line to avoid introducing a new RUN line (every run makes testsuite slightly slower). |
clang/test/Driver/modules.m | ||
---|---|---|
77–78 | Good suggestion, I merged the last existing 2 RUN lines along with the new one. |
This doesn't look right to me -- we still use module maps when modules are disabled to enforce layering checking, and when -fmodules-local-submodule-visibility is enabled but -fmodules is disabled we'll use them to provide modular semantics without pre-building modules. I'm going to revert.
Sorry, I wasn't aware of that. Could -fmodule-map-file= be pruned out when -fmodules-local-submodule-visibility or -fmodules-decluse are not enabled?
I've opened https://reviews.llvm.org/D133229 for your consideration, let me know whether this addresses your concerns 🙏
You may combine -fmodule-map-file=module.modulemap with this RUN line to avoid introducing a new RUN line (every run makes testsuite slightly slower).