Make enumerations and wide characters shorter by default when using a GNU compiler or Clang.
This commit is contained in:
		
							parent
							
								
									a3cdf22000
								
							
						
					
					
						commit
						af3a9202c0
					
				| @ -38,7 +38,7 @@ endif() | ||||
| 
 | ||||
| if ((${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) OR (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang)) | ||||
|     set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc") | ||||
|     set(CMAKE_CXX_FLAGS "-flto ${CMAKE_CXX_FLAGS} -pipe -fstack-protector-strong -fstack-clash-protection") | ||||
|     set(CMAKE_CXX_FLAGS "-flto ${CMAKE_CXX_FLAGS} -pipe -fstack-protector-strong -fstack-clash-protection -fshort-enums -fshort-wchar") | ||||
|     set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ffunction-sections -fdata-sections -fmerge-all-constants -ftree-vectorize") | ||||
|     include(CheckCXXCompilerFlag) | ||||
|     CHECK_CXX_COMPILER_FLAG("-fcf-protection" CF_PROTECTION_SUPPORTED) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user