kastiglione updated this revision to Diff 510234. kastiglione added a comment.
Add -Rmodule-import flag Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D147362/new/ https://reviews.llvm.org/D147362 Files: lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp Index: lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp =================================================================== --- lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp +++ lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp @@ -219,6 +219,13 @@ LLDB_LOG(log, "Finished building Clang module {0}", module_name); return true; } + case clang::diag::remark_module_import: { + const auto &module_name = info.getArgStdStr(0); + const auto &module_path = info.getArgStdStr(1); + LLDB_LOG(log, "Importing Clang module {0} from {1}", module_name, + module_path); + return true; + } default: return false; } @@ -671,7 +678,8 @@ "-fmodules-validate-system-headers", "-Werror=non-modular-include-in-framework-module", "-Xclang=-fincremental-extensions", - "-Rmodule-build"}; + "-Rmodule-build", + "-Rmodule-import"}; target.GetPlatform()->AddClangModuleCompilationOptions( &target, compiler_invocation_arguments);
Index: lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp =================================================================== --- lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp +++ lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp @@ -219,6 +219,13 @@ LLDB_LOG(log, "Finished building Clang module {0}", module_name); return true; } + case clang::diag::remark_module_import: { + const auto &module_name = info.getArgStdStr(0); + const auto &module_path = info.getArgStdStr(1); + LLDB_LOG(log, "Importing Clang module {0} from {1}", module_name, + module_path); + return true; + } default: return false; } @@ -671,7 +678,8 @@ "-fmodules-validate-system-headers", "-Werror=non-modular-include-in-framework-module", "-Xclang=-fincremental-extensions", - "-Rmodule-build"}; + "-Rmodule-build", + "-Rmodule-import"}; target.GetPlatform()->AddClangModuleCompilationOptions( &target, compiler_invocation_arguments);
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits