Skip to content

Commit 08ad8cb

Browse files
committed
added -DARDUINO_ARCH= and -DARDUINO_BOARD=
1 parent 450d33c commit 08ad8cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ build.usb_manufacturer="Unknown"
8888
# ----------------
8989

9090
## Compile c files
91-
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DPLATFORM={version} {compiler.c.extra_flags} {build.extra_flags} {compiler.c.sketch_flags} {build.sketch_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
91+
recipe.c.o.pattern="{compiler.path}{compiler.c.cmd}" {compiler.c.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_BOARD={build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_ARCH={build.arch} -DPLATFORM={version} {compiler.c.extra_flags} {build.extra_flags} {compiler.c.sketch_flags} {build.sketch_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
9292

9393
## Compile c++ files
94-
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} -DPLATFORM={version} {compiler.cpp.extra_flags} {build.extra_flags} {compiler.cpp.sketch_flags} {build.sketch_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
94+
recipe.cpp.o.pattern="{compiler.path}{compiler.cpp.cmd}" {compiler.cpp.flags} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_BOARD={build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_ARCH={build.arch} -DPLATFORM={version} {compiler.cpp.extra_flags} {build.extra_flags} {compiler.cpp.sketch_flags} {build.sketch_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
9595

9696
## Compile S files
97-
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} -DPLATFORM={version} {compiler.S.extra_flags} {build.extra_flags} {compiler.S.sketch_flags} {build.sketch_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
97+
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_BOARD={build.board} -DARDUINO_ARCH_{build.arch} -DARDUINO_ARCH={build.arch} -DPLATFORM={version} {compiler.S.extra_flags} {build.extra_flags} {compiler.S.sketch_flags} {build.sketch_flags} {compiler.arm.cmsis.c.flags} {includes} "{source_file}" -o "{object_file}"
9898

9999
## Create archives
100100
# archive_file_path is needed for backwards compatibility with IDE 1.6.5 or older, IDE 1.6.6 or newer overrides this value

0 commit comments

Comments
 (0)