Enable undefined behavior sanitizer in CI
This commit is contained in:
		
							parent
							
								
									9c82038561
								
							
						
					
					
						commit
						61d57901b1
					
				| @ -42,6 +42,13 @@ build:asan: | ||||
|   script: | ||||
|     - nix build -L --no-link .#ovniPackages.asan | ||||
| 
 | ||||
| build:ubsan: | ||||
|   stage: build | ||||
|   tags: | ||||
|     - nix | ||||
|   script: | ||||
|     - nix build -L --no-link .#ovniPackages.ubsan | ||||
| 
 | ||||
| build:nompi: | ||||
|   stage: build | ||||
|   tags: | ||||
|  | ||||
| @ -67,7 +67,9 @@ set(CMAKE_C_FLAGS_ASAN "${CMAKE_C_FLAGS_DEBUG} \ | ||||
|   -fno-omit-frame-pointer" | ||||
|   CACHE STRING "Flags used by the C compiler during AddressSanitizer builds." FORCE) | ||||
| 
 | ||||
| set(CMAKE_C_FLAGS_UBSAN "${CMAKE_C_FLAGS_DEBUG} -fsanitize=undefined" | ||||
| set(CMAKE_C_FLAGS_UBSAN "${CMAKE_C_FLAGS_DEBUG} \ | ||||
|   -fsanitize=undefined \ | ||||
|   -fno-sanitize-recover=all" | ||||
|   CACHE STRING "Flags used by the C compiler during UndefinedBehaviorSanitizer builds." FORCE) | ||||
| 
 | ||||
| find_program(IWYU NAMES include-what-you-use iwyu) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user