mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +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
9 changed files with 39 additions and 2 deletions
|
@ -7,3 +7,7 @@ set(SOURCES
|
|||
|
||||
add_library(LibTimeZone OBJECT ${SOURCES})
|
||||
target_compile_definitions(LibTimeZone PRIVATE ENABLE_TIME_ZONE_DATA=$<BOOL:${ENABLE_TIME_ZONE_DATABASE_DOWNLOAD}>)
|
||||
|
||||
# NOTE: These objects are used by the DynamicLoader, which is always built without coverage instrumentation.
|
||||
# We could allow them to be instrumented for coverage if DynamicLoader built its own copy
|
||||
target_link_libraries(LibTimeZone PRIVATE NoCoverage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue