Skip to content

Commit e1b164f

Browse files
committed
recipe.ar.pattern backwards compatibility
Port of arduino/Arduino#4737
1 parent df98257 commit e1b164f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -D
8686
recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.S.extra_flags} {build.extra_flags} {compiler.arm.cmsis.path} {includes} "{source_file}" -o "{object_file}"
8787

8888
## Create archives
89+
# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value
90+
archive_file_path={build.path}/{archive_file}
8991
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
9092

9193
## Combine gc-sections, archives, and objects

0 commit comments

Comments
 (0)