[libc-commits] [libc] [libc][NFC] Make the dummy header target under overlay build a library. (PR #66329)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 13 22:52:49 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
<details>
<summary>Changes</summary>
This fixes the broken overlay builders.
--
Full diff: https://github.com/llvm/llvm-project/pull/66329.diff
1 Files Affected:
- (modified) libc/cmake/modules/LLVMLibCHeaderRules.cmake (+1-1)
<pre>
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)
</pre>
</details>
https://github.com/llvm/llvm-project/pull/66329
More information about the libc-commits
mailing list