enable optimisation by default

This commit is contained in:
Julian Daube 2019-02-13 00:05:27 +01:00 committed by Julian Daube
parent f67475e8e4
commit b7d4cbaa27
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ function(add_avr_executable EXECUTABLE_NAME)
set_target_properties( set_target_properties(
${elf_file} ${elf_file}
PROPERTIES PROPERTIES
COMPILE_FLAGS "-mmcu=${AVR_MCU}" COMPILE_FLAGS "-mmcu=${AVR_MCU} -O3"
LINK_FLAGS "-mmcu=${AVR_MCU} -Wl,--gc-sections -mrelax -Wl,-Map,${map_file}" LINK_FLAGS "-mmcu=${AVR_MCU} -Wl,--gc-sections -mrelax -Wl,-Map,${map_file}"
) )