Subversion Repositories idreammicro-avr

Compare Revisions

Ignore whitespace Rev 39 → Rev 40

/trunk/build_system/env_avr.py
12,8 → 12,18
# Set language standard.
env_avr.Append(CCFLAGS = '-std=c99')
 
# Set optimization level.
env_avr.Append(CCFLAGS = '-Os')
# Set optimization level and call prologues/epilogues.
env_avr.Append(CCFLAGS = '-Os -mcall-prologues')
 
# Use short types.
env_avr.Append(CCFLAGS = '-funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums')
 
# Don't include unused function and data.
env_avr.Append(CCFLAGS = '-ffunction-sections -fdata-sections')
env_avr.Append(LINKFLAGS = '-Wl,--gc-sections')
 
# Enable linker relaxation.
env_avr.Append(LINKFLAGS = '-Wl,--relax')
 
# Export environment set for AVR-GCC.
Export('env_avr')