mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Meta+Userland: Add ENABLE_USERSPACE_COVERAGE_COLLECTION CMake option
This option sets -fprofile-instr-generate -fcoverage-mapping for Clang builds only on almost all of Userland. Loader and LibTimeZone are exempt. This can be used for generating code coverage reports, or even PGO in the future.
This commit is contained in:
parent
a6b2c34746
commit
5120b39d0e
Notes:
sideshowbarker
2024-07-17 11:23:43 +09:00
Author: https://github.com/ADKaster
Commit: 5120b39d0e
Pull-request: https://github.com/SerenityOS/serenity/pull/12881
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/kleinesfilmroellchen
9 changed files with 39 additions and 2 deletions
|
@ -73,6 +73,9 @@ function(serenity_libc target_name fs_name)
|
|||
if (NOT ENABLE_MOLD_LINKER)
|
||||
target_link_options(${target_name} PRIVATE -Wl,--no-dependent-libraries)
|
||||
endif()
|
||||
if (ENABLE_USERSPACE_COVERAGE_COLLECTION)
|
||||
target_link_libraries(${target_name} clang_rt.profile)
|
||||
endif()
|
||||
endif()
|
||||
target_link_directories(LibC PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
||||
serenity_generated_sources(${target_name})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue