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

View File

@ -63,7 +63,7 @@ function(add_avr_executable EXECUTABLE_NAME)
set_target_properties(
${elf_file}
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}"
)