Skip to content

Conversation

cyndyishida
Copy link
Member

Since resource headers are installed, commonly as system dependencies, they should have [system] on them. Fix up the ones missing.

@llvmbot llvmbot added clang Clang issues not falling into any other category backend:X86 clang:headers Headers provided by Clang, e.g. for intrinsics labels Sep 4, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 4, 2025

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-backend-x86

Author: Cyndy Ishida (cyndyishida)

Changes

Since resource headers are installed, commonly as system dependencies, they should have [system] on them. Fix up the ones missing.


Full diff: https://github.com/llvm/llvm-project/pull/156934.diff

1 Files Affected:

  • (modified) clang/lib/Headers/module.modulemap (+2-2)
diff --git a/clang/lib/Headers/module.modulemap b/clang/lib/Headers/module.modulemap
index a72828625a629..bdf5119ba4607 100644
--- a/clang/lib/Headers/module.modulemap
+++ b/clang/lib/Headers/module.modulemap
@@ -329,13 +329,13 @@ module _Builtin_unwind [system] {
 }
 // End -fbuiltin-headers-in-system-modules affected modules
 
-module opencl_c {
+module opencl_c [system] {
   requires opencl
   header "opencl-c.h"
   header "opencl-c-base.h"
 }
 
-module ptrauth {
+module ptrauth [system] {
   header "ptrauth.h"
   export *
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:X86 clang:headers Headers provided by Clang, e.g. for intrinsics clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants