mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:12:43 +00:00 
			
		
		
		
	 5120b39d0e
			
		
	
	
		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.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			13 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)
 |