mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	Adding ENABLE_CFI flag to CMake.
This commit is contained in:
		
							parent
							
								
									fd3727ad00
								
							
						
					
					
						commit
						b06b9eeb35
					
				
					 3 changed files with 40 additions and 1 deletions
				
			
		|  | @ -184,7 +184,12 @@ foreach (_build_type ${_build_types_as_upper}) | |||
|     # Address space layout randomization | ||||
|     # See https://msdn.microsoft.com/en-us/library/bb384887.aspx | ||||
|     string(APPEND CMAKE_EXE_LINKER_FLAGS_${_build_type} " /DYNAMICBASE") | ||||
|     string(APPEND CMAKE_SHARED_LINKER_FLAGS_${_build_type} " /DYNAMICBASE:NO") | ||||
|     if(ENABLE_CFI) | ||||
|       # CFI requires /DYNAMICBASE to be enabled. | ||||
|       string(APPEND CMAKE_SHARED_LINKER_FLAGS_${_build_type} " /DYNAMICBASE") | ||||
|     else() | ||||
|       string(APPEND CMAKE_SHARED_LINKER_FLAGS_${_build_type} " /DYNAMICBASE:NO") | ||||
|     endif() | ||||
| 
 | ||||
|     # FIXME: This is not necessary. This is MSVC's default. | ||||
|     # Indicate that the executable is compatible with DEP | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue