mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:17:34 +00:00
Ladybird/Meta: Convert to CMake build
This commit is contained in:
parent
da19b78dea
commit
74fda4aff5
7 changed files with 177 additions and 43 deletions
14
Ladybird/cmake/EnableLLD.cmake
Normal file
14
Ladybird/cmake/EnableLLD.cmake
Normal file
|
@ -0,0 +1,14 @@
|
|||
|
||||
option(LADYBIRD_USE_LLD "Use llvm lld to link application" ON)
|
||||
if (LADYBIRD_USE_LLD AND NOT APPLE)
|
||||
find_program(LLD_LINKER NAMES "ld.lld")
|
||||
if (NOT LLD_LINKER)
|
||||
message(INFO "LLD not found, cannot use to link. Disabling option...")
|
||||
set(LADYBIRD_USE_LLD OFF CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
endif()
|
||||
if (LADYBIRD_USE_LLD AND NOT APPLE)
|
||||
add_link_options(-fuse-ld=lld)
|
||||
add_compile_options(-ggnu-pubnames)
|
||||
add_link_options(LINKER:--gdb-index)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue