mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	Fix to disable LTO for Clang
The previous code was assuming Apple == Clang. This change should both enable LTO when using gcc on Apple and fix Clang when using it on other platforms.
This commit is contained in:
		
							parent
							
								
									e84f39ae54
								
							
						
					
					
						commit
						6bee34e4a6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -80,7 +80,7 @@ else()
 | 
			
		|||
    set(DEBUG_FLAGS "-g3 -O0")
 | 
			
		||||
  endif()
 | 
			
		||||
  set(RELEASE_FLAGS "-Ofast -DNDEBUG -Wno-unused-variable")
 | 
			
		||||
  if(NOT APPLE)
 | 
			
		||||
  if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
 | 
			
		||||
    # There is a clang bug that does not allow to compile code that uses AES-NI intrinsics if -flto is enabled
 | 
			
		||||
    set(RELEASE_FLAGS "${RELEASE_FLAGS} -flto")
 | 
			
		||||
  endif()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue