https://github.com/juliannagele created 
https://github.com/llvm/llvm-project/pull/204584

https://github.com/llvm/llvm-project/pull/203214 added BuiltinsAVR.def but 
omitted its textual header entry in module.modulemap. Building the Clang_Basic 
module then tried to import the .def as a submodule from inside namespace 
clang::AVR, which is illegal, breaking the module build. Add the missing entry.

>From 381c95f12d6b944a56da16acc1c594406b7f5949 Mon Sep 17 00:00:00 2001
From: Julian Nagele <[email protected]>
Date: Thu, 18 Jun 2026 13:03:43 +0100
Subject: [PATCH] [clang][modules] Add BuiltinsAVR.def as textual header in
 module.modulemap

Commit 930a46d23799 ([clang][AVR] Add basic AVR builtin functions)
added BuiltinsAVR.def but omitted its textual header entry in
module.modulemap. Building the Clang_Basic module then tried to import
the .def as a submodule from inside namespace clang::AVR, which is
illegal, breaking the module build. Add the missing entry.
---
 clang/include/module.modulemap | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/include/module.modulemap b/clang/include/module.modulemap
index b5376e840bce2..d3f616b3fd636 100644
--- a/clang/include/module.modulemap
+++ b/clang/include/module.modulemap
@@ -42,6 +42,7 @@ module Clang_Basic {
   textual header "clang/Basic/BuiltinsAArch64NeonSVEBridge.def"
   textual header "clang/Basic/BuiltinsAArch64NeonSVEBridge_cg.def"
   textual header "clang/Basic/BuiltinsARM.def"
+  textual header "clang/Basic/BuiltinsAVR.def"
   textual header "clang/Basic/BuiltinsHexagonMapCustomDep.def"
   textual header "clang/Basic/BuiltinsLoongArchBase.def"
   textual header "clang/Basic/BuiltinsLoongArchLASX.def"

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to