Skip to content

Commit 959950f

Browse files
Remove override printf define from c receipe
This define would serve to use the integer-only version of printf rather than the default. In commit 46470a9 (Remove override printf define from cpp receipe), this was removed from the cpp recipe, probably because this define could cause problems in C++ code and because the Due has plenty of memory for this. However, this same override was still present in the c recipe, so this introduced an inconsistency between .c and .cpp files, where they would end up getting different versions of printf. This commit fixes this by also removing the override for .c files.
1 parent 482837b commit 959950f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ compiler.warning_flags.all=-Wall -Wextra
1919

2020
compiler.path={runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path}/bin/
2121
compiler.c.cmd=arm-none-eabi-gcc
22-
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
22+
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
2323
compiler.c.elf.cmd=arm-none-eabi-g++
2424
compiler.c.elf.flags=-Os -Wl,--gc-sections
2525
compiler.S.cmd=arm-none-eabi-gcc

0 commit comments

Comments
 (0)