[libc-commits] [libc] [libc] Add base for target config within cmake (PR #72318)
via libc-commits
libc-commits at lists.llvm.org
Wed Nov 15 15:30:56 PST 2023
================
@@ -0,0 +1,16 @@
+# This optional file is used to exclude entrypoints/headers for specific targets.
+
+try_compile(
+ has_sys_random
+ ${CMAKE_CURRENT_BINARY_DIR}
+ SOURCES ${LIBC_SOURCE_DIR}/src/sys/random/linux/getrandom.cpp
+)
----------------
lntue wrote:
We should only do this in overlay mode right? Since we do know whether the header exists or not in full build mode.
https://github.com/llvm/llvm-project/pull/72318
More information about the libc-commits
mailing list