Skip to content

Commit 7105bef

Browse files
committed
- Changed CMake for clock_settime() to be more flexible for future targets
1 parent 06ac55c commit 7105bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/time/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ add_object_library(
2020
libc.src.__support.time.${LIBC_TARGET_OS}.clock_gettime
2121
)
2222

23-
if(LIBC_TARGET_OS_IS_LINUX)
23+
if(TARGET libc.src.__support.time.${LIBC_TARGET_OS}.clock_settime)
2424
add_object_library(
2525
clock_settime
2626
ALIAS

0 commit comments

Comments
 (0)