[libc-commits] [libc] [libc] Restore DECLS_FILE_PATH property (PR #99583)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Jul 18 15:51:26 PDT 2024


https://github.com/michaelrj-google created https://github.com/llvm/llvm-project/pull/99583

The DECLS_FILE_PATH property is supposed to be set on the targets for
the generated headers for the GPU build installation. It got missed when
creating the cmake rule for new headergen.


>From c3b7b7a06733a1b1dd150c59166fc186780f6d8f Mon Sep 17 00:00:00 2001
From: Michael Jones <michaelrj at google.com>
Date: Thu, 18 Jul 2024 15:49:49 -0700
Subject: [PATCH] [libc] Restore DECLS_FILE_PATH property

The DECLS_FILE_PATH property is supposed to be set on the targets for
the generated headers for the GPU build installation. It got missed when
creating the cmake rule for new headergen.
---
 libc/cmake/modules/LLVMLibCHeaderRules.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libc/cmake/modules/LLVMLibCHeaderRules.cmake b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
index 91054810f5ec5..3049f4db7301f 100644
--- a/libc/cmake/modules/LLVMLibCHeaderRules.cmake
+++ b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
@@ -160,6 +160,7 @@ function(add_gen_header2 target_name)
     ${fq_target_name}
     PROPERTIES
       HEADER_FILE_PATH ${out_file}
+      DECLS_FILE_PATH "${decl_out_file}"
       DEPS "${fq_deps_list}"
   )
 



More information about the libc-commits mailing list