Skip to content

Commit 855af13

Browse files
authored
[libc] fixed target issue with exit_handler (llvm#94678)
- addressed llvm#94317 (comment) - added conditional in cmake file for exit_handler object library Co-authored-by: Aaryan Shukla <aaryanshukla@google.com>
1 parent 81e9a3c commit 855af13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libc/src/stdlib/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@ add_entrypoint_object(
416416
libc.src.__support.OSUtil.osutil
417417
)
418418

419+
# TODO: Move all exit functions to linux specific
420+
421+
if (TARGET libc.src.__support.threads.mutex)
419422
add_object_library(
420423
exit_handler
421424
SRCS
@@ -432,6 +435,7 @@ add_object_library(
432435
libc.src.__support.fixedvector
433436
libc.src.__support.threads.mutex
434437
)
438+
endif()
435439

436440
add_entrypoint_object(
437441
atexit

0 commit comments

Comments
 (0)