mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	- Changed default compiler flags to include -O2
This commit is contained in:
		
							parent
							
								
									09f097d45f
								
							
						
					
					
						commit
						f1ab0ec1ff
					
				@ -4,9 +4,9 @@ project(POLARSSL C)
 | 
			
		||||
enable_testing()
 | 
			
		||||
 | 
			
		||||
if(CMAKE_COMPILER_IS_GNUCC)
 | 
			
		||||
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wdeclaration-after-statement")
 | 
			
		||||
  set(CMAKE_C_FLAGS_DEBUG "-g -O0")
 | 
			
		||||
  set(CMAKE_C_FLAGS_COVERAGE "-g -O0 -fprofile-arcs -ftest-coverage -lgcov")
 | 
			
		||||
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wall -Wextra -W -Wdeclaration-after-statement")
 | 
			
		||||
  set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
 | 
			
		||||
  set(CMAKE_C_FLAGS_COVERAGE "-g3 -O0 -fprofile-arcs -ftest-coverage -lgcov")
 | 
			
		||||
endif(CMAKE_COMPILER_IS_GNUCC)
 | 
			
		||||
 
 | 
			
		||||
if(CMAKE_BUILD_TYPE STREQUAL "Coverage")
 | 
			
		||||
 | 
			
		||||
@ -5,7 +5,7 @@
 | 
			
		||||
# environment
 | 
			
		||||
#
 | 
			
		||||
CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement
 | 
			
		||||
OFLAGS	= -O
 | 
			
		||||
OFLAGS	= -O2
 | 
			
		||||
 | 
			
		||||
ifdef DEBUG
 | 
			
		||||
CFLAGS += -g3
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@
 | 
			
		||||
# To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
 | 
			
		||||
 | 
			
		||||
CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement
 | 
			
		||||
OFLAGS	= -O
 | 
			
		||||
OFLAGS	= -O2
 | 
			
		||||
LDFLAGS	+= -L../library -lpolarssl $(SYS_LDFLAGS)
 | 
			
		||||
 | 
			
		||||
ifdef DEBUG
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@
 | 
			
		||||
CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement \
 | 
			
		||||
			-Wno-unused-function -Wno-unused-value
 | 
			
		||||
 | 
			
		||||
OFLAGS	= -O
 | 
			
		||||
OFLAGS	= -O2
 | 
			
		||||
LDFLAGS	+= -L../library -lpolarssl $(SYS_LDFLAGS)
 | 
			
		||||
 | 
			
		||||
ifdef DEBUG
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user