Clean up and speed up build tests by turning off expensive and slow size optimizations, and generation of assembly listings (*.lst) for each compiled source file.
This commit is contained in:
		
							parent
							
								
									0a00ee4037
								
							
						
					
					
						commit
						80e278acde
					
				
					 13 changed files with 106 additions and 94 deletions
				
			
		| 
						 | 
				
			
			@ -149,7 +149,7 @@ ASRC =
 | 
			
		|||
# Optimization level, can be [0, 1, 2, 3, s].
 | 
			
		||||
#     0 = turn off optimization. s = optimize for size.
 | 
			
		||||
#     (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
 | 
			
		||||
OPT = s
 | 
			
		||||
OPT = 1
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# Debugging format.
 | 
			
		||||
| 
						 | 
				
			
			@ -222,7 +222,7 @@ CFLAGS += -Wstrict-prototypes
 | 
			
		|||
#CFLAGS += -Wundef
 | 
			
		||||
#CFLAGS += -Wunreachable-code
 | 
			
		||||
#CFLAGS += -Wsign-compare
 | 
			
		||||
CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst)
 | 
			
		||||
#CFLAGS += -Wa,-adhlns=$(<:%.c=$(OBJDIR)/%.lst)
 | 
			
		||||
CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
 | 
			
		||||
CFLAGS += $(CSTANDARD)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -249,7 +249,7 @@ CPPFLAGS += -Wundef
 | 
			
		|||
#CPPFLAGS += -Wstrict-prototypes
 | 
			
		||||
#CPPFLAGS += -Wunreachable-code
 | 
			
		||||
#CPPFLAGS += -Wsign-compare
 | 
			
		||||
CPPFLAGS += -Wa,-adhlns=$(<:%.cpp=$(OBJDIR)/%.lst)
 | 
			
		||||
#CPPFLAGS += -Wa,-adhlns=$(<:%.cpp=$(OBJDIR)/%.lst)
 | 
			
		||||
CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
 | 
			
		||||
#CPPFLAGS += $(CSTANDARD)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -263,7 +263,8 @@ CPPFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))
 | 
			
		|||
#             files -- see avr-libc docs [FIXME: not yet described there]
 | 
			
		||||
#  -listing-cont-lines: Sets the maximum number of continuation lines of hex
 | 
			
		||||
#       dump that will be displayed for a given single line of source input.
 | 
			
		||||
ASFLAGS = $(ADEFS) -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100
 | 
			
		||||
ASFLAGS = $(ADEFS)
 | 
			
		||||
#ASFLAGS += -Wa,-adhlns=$(<:%.S=$(OBJDIR)/%.lst),-gstabs,--listing-cont-lines=100
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#---------------- Library Options ----------------
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue