mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:02: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.
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			373 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			373 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(SOURCES
 | |
|     syscall.cpp
 | |
| )
 | |
| 
 | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib")
 | |
| serenity_libc(LibSystem system)
 | |
| target_include_directories(LibSystem PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
 | |
| 
 | |
| add_library(LibSystemStatic STATIC ${SOURCES})
 | |
| target_include_directories(LibSystemStatic PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
 | |
| target_link_libraries(LibSystemStatic PRIVATE NoCoverage)
 |