Skip to content

Some build rule fixes (fix use of libstdc++ and printf) #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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.
  • Loading branch information
matthijskooijman committed Sep 29, 2020
commit 959950feade6a2926024236b36f4d3ae9de9f0bc
2 changes: 1 addition & 1 deletion platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ compiler.warning_flags.all=-Wall -Wextra

compiler.path={runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path}/bin/
compiler.c.cmd=arm-none-eabi-gcc
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
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
compiler.c.elf.cmd=arm-none-eabi-g++
compiler.c.elf.flags=-Os -Wl,--gc-sections
compiler.S.cmd=arm-none-eabi-gcc
Expand Down