Skip to content

Conversation

@frobtech
Copy link
Contributor

No description provided.

@frobtech frobtech marked this pull request as ready for review February 14, 2025 21:45
@llvmbot llvmbot added the libc label Feb 14, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 14, 2025

@llvm/pr-subscribers-libc

Author: Roland McGrath (frobtech)

Changes

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

1 Files Affected:

  • (modified) libc/utils/hdrgen/header.py (+6-8)
diff --git a/libc/utils/hdrgen/header.py b/libc/utils/hdrgen/header.py
index c817c02b83b75..b03535ce90bfc 100644
--- a/libc/utils/hdrgen/header.py
+++ b/libc/utils/hdrgen/header.py
@@ -23,14 +23,12 @@
     "ptr",
 ]
 
-COMPILER_HEADER_TYPES = (
-    {
-        "bool": "<stdbool.h>",
-        "va_list": "<stdarg.h>",
-    }
-    | {f"int{size}_t": "<stdint.h>" for size in STDINT_SIZES}
-    | {f"uint{size}_t": "<stdint.h>" for size in STDINT_SIZES}
-)
+COMPILER_HEADER_TYPES = {
+    "bool": "<stdbool.h>",
+    "va_list": "<stdarg.h>",
+}
+COMPILER_HEADER_TYPES.update({f"int{size}_t": "<stdint.h>" for size in STDINT_SIZES})
+COMPILER_HEADER_TYPES.update({f"uint{size}_t": "<stdint.h>" for size in STDINT_SIZES})
 
 
 class HeaderFile:

@frobtech frobtech merged commit dcfc30c into llvm:main Feb 14, 2025
16 of 17 checks passed
@frobtech frobtech deleted the p/libc-hdrgen-python-compat branch February 14, 2025 21:51
sivan-shani pushed a commit to sivan-shani/llvm-project that referenced this pull request Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants