================
@@ -4770,9 +4770,20 @@ std::string CompilerInvocation::getModuleHash() const {
// When compiling with -gmodules, also hash -fdebug-prefix-map as it
// affects the debug info in the PCM.
- if (getCodeGenOpts().DebugTypeExtRefs)
+ if (getHeaderSearchOpts().ModuleFormat == "obj") {
----------------
jansvoboda11 wrote:
Could we extract this into a separate patch then? Seems like this change is
mostly orthogonal to option pruning and could be done in a prep patch.
https://github.com/llvm/llvm-project/pull/74006
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits