diff options
author | per1234 <accounts@perglass.com> | 2016-03-22 03:31:10 -0700 |
---|---|---|
committer | per1234 <accounts@perglass.com> | 2016-03-22 03:31:10 -0700 |
commit | 33c9558641d15d63d8f7857810f70e05d4e43d5d (patch) | |
tree | abcdb3aff3dcdebb2974ab13fe0868e06f77a52d /platform.txt | |
parent | 7b2f6fc02881ec6a01a3b1d4ae248202232c4c6c (diff) |
AVR recipe.ar.pattern backwards compatibility
Define archive_file_path in Arduino AVR Boards platform.txt to provide
backwards compatibility with IDE versions previous to 1.6.6. The
archive_file_path value set in platform.txt is overridden in IDE 1.6.6+.
This produces avr-ar commands identical to the previous behavior.
Diffstat (limited to 'platform.txt')
-rw-r--r-- | platform.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform.txt b/platform.txt index 4a3c6bb..959e6e4 100644 --- a/platform.txt +++ b/platform.txt @@ -62,6 +62,7 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -m recipe.S.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.S.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {includes} "{source_file}" -o "{object_file}" ## Create archives +archive_file_path={build.path}/{archive_file} recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}" ## Combine gc-sections, archives, and objects |