mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:52:44 +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
		
	
	
	
		
			548 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			548 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| include(${SerenityOS_SOURCE_DIR}/Meta/CMake/time_zone_data.cmake)
 | |
| 
 | |
| set(SOURCES
 | |
|     TimeZone.cpp
 | |
|     ${TIME_ZONE_DATA_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)
 |