diff --git a/clang/include/clang/Basic/DiagnosticFrontendKinds.td b/clang/include/clang/Basic/DiagnosticFrontendKinds.td --- a/clang/include/clang/Basic/DiagnosticFrontendKinds.td +++ b/clang/include/clang/Basic/DiagnosticFrontendKinds.td @@ -241,8 +241,10 @@ def note_module_def_undef_here : Note< "macro was %select{defined|#undef'd}0 here">; def remark_module_build : Remark<"building module '%0' as '%1'">, + ShowInSystemHeader, InGroup; def remark_module_build_done : Remark<"finished building module '%0'">, + ShowInSystemHeader, InGroup; def remark_module_lock : Remark<"locking '%0' to build module '%1'">, InGroup; diff --git a/clang/include/clang/Basic/DiagnosticSerializationKinds.td b/clang/include/clang/Basic/DiagnosticSerializationKinds.td --- a/clang/include/clang/Basic/DiagnosticSerializationKinds.td +++ b/clang/include/clang/Basic/DiagnosticSerializationKinds.td @@ -75,6 +75,7 @@ def remark_module_import : Remark< "importing module '%0'%select{| into '%3'}2 from '%1'">, + ShowInSystemHeader, InGroup; def err_imported_module_not_found : Error< diff --git a/clang/test/Modules/system-Rmodule-build.m b/clang/test/Modules/system-Rmodule-build.m new file mode 100644 --- /dev/null +++ b/clang/test/Modules/system-Rmodule-build.m @@ -0,0 +1,16 @@ +// RUN: rm -rf %t +// RUN: mkdir -p %t/sys +// RUN: echo '#include ' > %t/sys/A.h +// RUN: echo '' > %t/sys/B.h +// RUN: echo 'module A { header "A.h" }' > %t/sys/module.modulemap +// RUN: echo 'module B { header "B.h" }' >> %t/sys/module.modulemap + +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fsyntax-only %s \ +// RUN: -isystem %t/sys -Rmodule-build 2>&1 | FileCheck %s + +@import A; + +// CHECK: building module 'A' as +// CHECK: building module 'B' as +// CHECK: finished building module 'B' +// CHECK: finished building module 'A'