-
Notifications
You must be signed in to change notification settings - Fork 2
/
platform.local.txt
11 lines (7 loc) · 1.95 KB
/
platform.local.txt
1
2
3
4
5
6
7
8
9
10
11
# Install this file into /opt/arduino-1.8.9/hardware/arduino/avr
compiler.nim.flags=--cpu:avr --os:any --gc:arc --exceptions:goto --noMain -d:noSignalHandler -d:danger -d:useMalloc
recipe.preproc.macros="nim_arduino" macros --nimflags="{compiler.nim.flags}" --compiler="{compiler.path}{compiler.cpp.cmd}" --cppflags="{compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes}" --input="{source_file}" --output="{preprocessed_file_path}"
recipe.preproc.includes="nim_arduino" includes --compiler="{compiler.path}{compiler.cpp.cmd}" --cppflags="{compiler.cpp.flags} {preproc.macros.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes}" --input="{source_file}" --output="{preprocessed_file_path}"
recipe.c.o.pattern="nim_arduino" c --compiler="{compiler.path}{compiler.c.cmd}" --cflags="{compiler.c.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes}" --input="{source_file}" --output="{object_file}"
recipe.cpp.o.pattern="nim_arduino" cpp --compiler="{compiler.path}{compiler.cpp.cmd}" --cppflags="{compiler.cpp.flags} -mmcu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.cpp.extra_flags} {build.extra_flags} {includes}" --input="{source_file}" --output="{object_file}"
recipe.c.combine.pattern="nim_arduino" link --linker="{compiler.path}{compiler.c.elf.cmd}" --ldflags="{compiler.c.elf.flags} -mmcu={build.mcu} {compiler.c.elf.extra_flags} {build.path}/{archive_file} -L{build.path} -lm" --output="{build.path}/{build.project_name}.elf" --input={object_files}