[libc-commits] [libc] [libc] Add limits.h header. (PR #78887)
via libc-commits
libc-commits at lists.llvm.org
Wed Jan 24 11:50:48 PST 2024
================
@@ -173,7 +173,17 @@ function(create_header_library fq_target_name)
target_sources(${fq_target_name} INTERFACE ${ADD_HEADER_HDRS})
if(ADD_HEADER_DEPENDS)
add_dependencies(${fq_target_name} ${ADD_HEADER_DEPENDS})
- target_link_libraries(${fq_target_name} INTERFACE ${ADD_HEADER_DEPENDS})
+
+ # `*.__copied_hdr__` is created only to copy the header files to the target
+ # location, not to be linked against.
+ set(link_lib "")
+ foreach(dep ${ADD_HEADER_DEPENDS})
+ if (NOT dep MATCHES "__copied_hdr__")
+ list(APPEND link_lib ${dep})
+ endif()
+ endforeach()
----------------
lntue wrote:
No it's not. It just remove those extra command-only targets. Changes in this part We won't add `limits.h` to the consumers, only the "internal" `include/llvm-libc-macros/limit-macros.h`.
https://github.com/llvm/llvm-project/pull/78887
More information about the libc-commits
mailing list