[libc-commits] [libc] f8f934e - [libc][NFC] Make the dummy header target under overlay build a library. (#66329)

via libc-commits libc-commits at lists.llvm.org
Wed Sep 13 22:52:23 PDT 2023


Author: Siva Chandra
Date: 2023-09-13T22:52:20-07:00
New Revision: f8f934e22c4a9dc7abaaddf422c8725bacf2048a

URL: https://github.com/llvm/llvm-project/commit/f8f934e22c4a9dc7abaaddf422c8725bacf2048a
DIFF: https://github.com/llvm/llvm-project/commit/f8f934e22c4a9dc7abaaddf422c8725bacf2048a.diff

LOG: [libc][NFC] Make the dummy header target under overlay build a library. (#66329)

This fixes the broken overlay builders.

Added: 
    

Modified: 
    libc/cmake/modules/LLVMLibCHeaderRules.cmake

Removed: 
    


################################################################################
diff  --git a/libc/cmake/modules/LLVMLibCHeaderRules.cmake b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
index e259a512ea760f6..1027a55946d5f8b 100644
--- a/libc/cmake/modules/LLVMLibCHeaderRules.cmake
+++ b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
@@ -86,7 +86,7 @@ function(add_gen_header target_name)
   get_fq_target_name(${target_name} fq_target_name)
   if(NOT LLVM_LIBC_FULL_BUILD)
     # We don't want to use generated headers if we are doing a non-full-build.
-    add_custom_target(${fq_target_name})
+    add_library(${fq_target_name} INTERFACE)
     return()
   endif()
   if(NOT ADD_GEN_HDR_DEF_FILE)


        


More information about the libc-commits mailing list