mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:27:44 +00:00
Meta: Add Clang support to the CMake build scripts
This commit is contained in:
parent
15e217ea68
commit
13e3df41de
7 changed files with 128 additions and 22 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue