Skip to content

Commit 06ac55c

Browse files
committed
- Fixed CMake to include the implementation only on Linux for now
1 parent 2c0ef10 commit 06ac55c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

libc/src/__support/time/CMakeLists.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ add_object_library(
2020
libc.src.__support.time.${LIBC_TARGET_OS}.clock_gettime
2121
)
2222

23-
add_object_library(
24-
clock_settime
25-
ALIAS
26-
DEPENDS
27-
libc.src.__support.time.${LIBC_TARGET_OS}.clock_settime
28-
)
23+
if(LIBC_TARGET_OS_IS_LINUX)
24+
add_object_library(
25+
clock_settime
26+
ALIAS
27+
DEPENDS
28+
libc.src.__support.time.${LIBC_TARGET_OS}.clock_settime
29+
)
30+
endif()

0 commit comments

Comments
 (0)