Skip to content

Commit 482837b

Browse files
Link using g++
This ensures some C++-specific symbols, such as `std::_throw_bad_function_call` and probably others, are automatically included in the link, preventing linker errors when using some standard c++ library bits (such as `std::function`). This follows the same change done for SAMD: arduino/ArduinoCore-samd#276
1 parent 790ff2c commit 482837b

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
@@ -20,7 +20,7 @@ compiler.warning_flags.all=-Wall -Wextra
2020
compiler.path={runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path}/bin/
2121
compiler.c.cmd=arm-none-eabi-gcc
2222
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
23-
compiler.c.elf.cmd=arm-none-eabi-gcc
23+
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
2626
compiler.S.flags=-c -g -x assembler-with-cpp -MMD

0 commit comments

Comments
 (0)