Skip to content

Commit

Permalink
Merge pull request #415 from bluetiger9/gnu11
Browse files Browse the repository at this point in the history
compile with -std=gnu11 / -std=gnu++11
  • Loading branch information
EmbeddedMan authored May 31, 2018
2 parents 99c4ec1 + 859490d commit 931a166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pic32/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ compiler.c.cmd=pic32-gcc
# For -G1024, objects 1024 bytes or smaller will be accessed by
# gp-relative addressing
#compiler.c.flags=-c -g -O2 {compiler.warning_flags} -mno-smart-io -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder -MMD
compiler.c.flags=-c -g -O2 {compiler.warning_flags} -DARDUINO_ARCH_{build.arch} -mno-smart-io -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder -MMD
compiler.c.flags=-c -g -O2 {compiler.warning_flags} -std=gnu11 -DARDUINO_ARCH_{build.arch} -mno-smart-io -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder -MMD
compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--save-gld={build.path}/sketch.ld,-Map={build.path}/sketch.map,--gc-sections -mdebugger -mno-peripheral-libs -nostartfiles
compiler.c.elf.cmd=pic32-g++
compiler.S.flags=-c -g1 -O2 -Wa,--gdwarf-2
compiler.cpp.cmd=pic32-g++
#compiler.cpp.flags=-c -g -O2 {compiler.warning_flags} -mno-smart-io -fno-exceptions -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder -MMD
compiler.cpp.flags=-c -g -O2 {compiler.warning_flags} -DARDUINO_ARCH_{build.arch} -mno-smart-io -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder -fno-exceptions
compiler.cpp.flags=-c -g -O2 {compiler.warning_flags} -std=gnu++11 -DARDUINO_ARCH_{build.arch} -mno-smart-io -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder -fno-exceptions
compiler.ar.cmd=pic32-ar
compiler.ar.flags=rcs
compiler.objcopy.cmd=pic32-objcopy
Expand Down

0 comments on commit 931a166

Please # to comment.