mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
5120b39d0e
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.
14 lines
358 B
CMake
14 lines
358 B
CMake
set(SOURCES
|
|
UBSanitizer.cpp
|
|
../LibC/ssp.cpp
|
|
)
|
|
|
|
set_source_files_properties (../LibC/ssp.cpp PROPERTIES COMPILE_FLAGS
|
|
"-fno-stack-protector")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib")
|
|
serenity_libc(LibUBSanitizer ubsan)
|
|
|
|
add_library(LibUBSanitizerStatic STATIC ${SOURCES})
|
|
target_link_libraries(LibUBSanitizerStatic PRIVATE NoCoverage)
|