[clang] [llvm] [Modules] Fix modular build. (PR #122034)

Volodymyr Sapsai via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 17:12:41 PST 2025


https://github.com/vsapsai created https://github.com/llvm/llvm-project/pull/122034

Add a new file to the module map and remove 2 missing files (migrated from .def to .td).

>From cc9d4ebe3880810c8325f1fd6c7b9e2a49f2fe74 Mon Sep 17 00:00:00 2001
From: Volodymyr Sapsai <vsapsai at gmail.com>
Date: Tue, 7 Jan 2025 17:10:02 -0800
Subject: [PATCH] [Modules] Fix modular build.

Add a new file to the module map and remove 2 missing files (migrated
from .def to .td).
---
 clang/include/module.modulemap | 2 --
 llvm/include/module.modulemap  | 1 +
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/clang/include/module.modulemap b/clang/include/module.modulemap
index 5bb9f6b7a91f67..f00dede7fd526c 100644
--- a/clang/include/module.modulemap
+++ b/clang/include/module.modulemap
@@ -62,8 +62,6 @@ module Clang_Basic {
   textual header "clang/Basic/BuiltinsVE.def"
   textual header "clang/Basic/BuiltinsVEVL.gen.def"
   textual header "clang/Basic/BuiltinsWebAssembly.def"
-  textual header "clang/Basic/BuiltinsX86.def"
-  textual header "clang/Basic/BuiltinsX86_64.def"
   textual header "clang/Basic/BuiltinsXCore.def"
   textual header "clang/Basic/CFProtectionOptions.def"
   textual header "clang/Basic/CodeGenOptions.def"
diff --git a/llvm/include/module.modulemap b/llvm/include/module.modulemap
index 6beb0e03e222d5..46277e128d9898 100644
--- a/llvm/include/module.modulemap
+++ b/llvm/include/module.modulemap
@@ -96,6 +96,7 @@ module LLVM_BinaryFormat {
     textual header "llvm/BinaryFormat/ELFRelocs/PowerPC64.def"
     textual header "llvm/BinaryFormat/ELFRelocs/PowerPC.def"
     textual header "llvm/BinaryFormat/ELFRelocs/RISCV.def"
+    textual header "llvm/BinaryFormat/ELFRelocs/RISCV_nonstandard.def"
     textual header "llvm/BinaryFormat/ELFRelocs/Sparc.def"
     textual header "llvm/BinaryFormat/ELFRelocs/SystemZ.def"
     textual header "llvm/BinaryFormat/ELFRelocs/VE.def"



More information about the llvm-commits mailing list