[clang] [Modules] Add `clang/Lex/HLSLRootSignatureTokenKinds.def` to clang's `modulemap` (PR #127839)

Qiongsi Wu via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 10:08:40 PST 2025


https://github.com/qiongsiwu created https://github.com/llvm/llvm-project/pull/127839

b41b86a907f653f79bab10d4c80b3a41d146c71b added a new textual header `clang/Lex/HLSLRootSignatureTokenKinds.def` but did not add it to `clang`'s module map. This causes build failure when building llvm with `-DLLVM_ENABLE_MODULES=ON`. This PR adds the new textual header to the module map and fixes the build break. 

Fixing rdar://145148093. 

>From c7736e8477478eea7cf60f15cc47eade052d100c Mon Sep 17 00:00:00 2001
From: Qiongsi Wu <qiongsi_wu at apple.com>
Date: Wed, 19 Feb 2025 10:05:36 -0800
Subject: [PATCH] Add clang/Lex/HLSLRootSignatureTokenKinds.def to clang's
 module map.

---
 clang/include/module.modulemap | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/clang/include/module.modulemap b/clang/include/module.modulemap
index fb8e445cb4b72..8489619832a47 100644
--- a/clang/include/module.modulemap
+++ b/clang/include/module.modulemap
@@ -135,7 +135,16 @@ module Clang_Frontend {
 
 module Clang_FrontendTool { requires cplusplus umbrella "clang/FrontendTool" module * { export * } }
 module Clang_Index { requires cplusplus umbrella "clang/Index" module * { export * } }
-module Clang_Lex { requires cplusplus umbrella "clang/Lex" module * { export * } }
+
+module Clang_Lex {
+  requires cplusplus
+  umbrella "clang/Lex"
+
+  textual header "clang/Lex/HLSLRootSignatureTokenKinds.def"
+
+  module * { export * }
+}
+
 module Clang_Parse { requires cplusplus umbrella "clang/Parse" module * { export * } }
 module Clang_Rewrite { requires cplusplus umbrella "clang/Rewrite/Core" module * { export * } }
 module Clang_RewriteFrontend { requires cplusplus umbrella "clang/Rewrite/Frontend" module * { export * } }



More information about the cfe-commits mailing list