[libc-commits] [libc] [libc]: fix missing `linux/error-number-macros.h` (PR #97101)

Izaak Schroeder via libc-commits libc-commits at lists.llvm.org
Fri Jun 28 12:41:49 PDT 2024


https://github.com/izaakschroeder created https://github.com/llvm/llvm-project/pull/97101

The headers installation previously missed platform-specific number macros, and this fixes that. From discussion on LLVM discord with `michaelrj` – ccing @michaelrj-google who hopefully is the same person 😅 

N.B. I have tested this manually in my Linux Dockerfile and it appears to do the right thing; I haven't done much more than that.

>From 304f87b016c310739a90c5d23553669b2278b171 Mon Sep 17 00:00:00 2001
From: Izaak Schroeder <izaak.schroeder at gmail.com>
Date: Fri, 28 Jun 2024 12:33:42 -0700
Subject: [PATCH] [libc]: fix missing `linux/error-number-macros.h`

The headers installation previously missed platform-specific number macros, and this fixes that.
---
 libc/include/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 2ce8423ae4d9b..3ab7817d8568b 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -223,6 +223,7 @@ add_gen_header(
   GEN_HDR errno.h
   DEPENDS
     .llvm-libc-macros.generic_error_number_macros
+    .llvm-libc-macros.error_number_macros
 )
 
 add_gen_header(



More information about the libc-commits mailing list