summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSanitizer/CMakeLists.txt
blob: cf13d1f531abc734c00898b0427e219b9a9516f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)