diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-03-04 18:02:09 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-02 01:46:18 +0200 |
commit | 5120b39d0e8b0995e233600375a5d818f9003aa4 (patch) | |
tree | d08003ac42202b68ef6f81ba46bfae7fa088f13d /Userland/DynamicLoader | |
parent | a6b2c3474658038e77f3d5190828a796f7008b66 (diff) | |
download | serenity-5120b39d0e8b0995e233600375a5d818f9003aa4.zip |
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.
Diffstat (limited to 'Userland/DynamicLoader')
-rw-r--r-- | Userland/DynamicLoader/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/DynamicLoader/CMakeLists.txt b/Userland/DynamicLoader/CMakeLists.txt index fb86c2413b..eaaf9b075e 100644 --- a/Userland/DynamicLoader/CMakeLists.txt +++ b/Userland/DynamicLoader/CMakeLists.txt @@ -44,6 +44,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang$") target_link_libraries(Loader.so PRIVATE clang_rt.builtins) endif () -target_link_libraries(Loader.so PRIVATE LibTimeZone) +# Note: Don't confuse the coverage results by instrumenting Loader +target_link_libraries(Loader.so PRIVATE LibTimeZone NoCoverage) target_link_options(Loader.so PRIVATE LINKER:--no-dynamic-linker) install(TARGETS Loader.so RUNTIME DESTINATION usr/lib/) |