summaryrefslogtreecommitdiff
path: root/Meta/CMake
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-07-13 16:43:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-08 10:55:36 +0200
commit13e3df41defadbdfd413ff3abb18beb2af0569cc (patch)
tree806ee83cd9f1453feee68a480513a7a9f3607d55 /Meta/CMake
parent15e217ea68f5f83f953ff6c41a7c2529704f1f11 (diff)
downloadserenity-13e3df41defadbdfd413ff3abb18beb2af0569cc.zip
Meta: Add Clang support to the CMake build scripts
Diffstat (limited to 'Meta/CMake')
-rw-r--r--Meta/CMake/utils.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Meta/CMake/utils.cmake b/Meta/CMake/utils.cmake
index 942f327ddc..c5c4510620 100644
--- a/Meta/CMake/utils.cmake
+++ b/Meta/CMake/utils.cmake
@@ -51,6 +51,9 @@ function(serenity_libc target_name fs_name)
add_library(${target_name} SHARED ${SOURCES})
install(TARGETS ${target_name} DESTINATION usr/lib)
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${fs_name})
+ if (USE_CLANG_TOOLCHAIN)
+ target_link_libraries(${target_name} clang_rt.builtins-${SERENITY_CLANG_ARCH})
+ endif()
target_link_directories(LibC PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
serenity_generated_sources(${target_name})
endfunction()