Skip to content

Commit b636463

Browse files
committed
Update to C++ 20
1 parent 41accfb commit b636463

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cli-version: latest
4646
platforms: |
4747
- name: "n-able-Arduino:arm-ble"
48-
source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json"
48+
source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_test_index.json"
4949
version: latest
5050
- name: "n-able-Arduino:arm-ble"
5151
source-path: .
@@ -118,7 +118,7 @@ jobs:
118118
run: |
119119
cat > example/platformio.ini << EOF
120120
[env]
121-
platform = https://github.com/h2zero/platform-n-able.git
121+
platform = https://github.com/h2zero/platform-n-able.git#cpp20
122122
platform_packages = framework-n-able-arduino @ file://./framework
123123
framework = arduino
124124
${{ matrix.flags }}

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ compiler.warning_flags.default=
2828
compiler.warning_flags.more=-Wall
2929
compiler.warning_flags.all=-Wall -Wextra
3030

31-
compiler.path={runtime.tools.gcc-arm-none-eabi-9.3.1-1.path}/bin/
31+
compiler.path={runtime.tools.gcc-arm-none-eabi-10.3.1-2.1.path}/bin/
3232
compiler.c.cmd=arm-none-eabi-gcc
3333
compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -std=gnu17 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
3434
compiler.c.elf.cmd=arm-none-eabi-g++
3535
compiler.c.elf.flags=-Os -Wl,--gc-sections -save-temps
3636
compiler.S.cmd=arm-none-eabi-gcc
3737
compiler.S.flags=-c -g -x assembler-with-cpp
3838
compiler.cpp.cmd=arm-none-eabi-g++
39-
compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -std=gnu++17 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
39+
compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -std=gnu++20 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
4040
compiler.ar.cmd=arm-none-eabi-ar
4141
compiler.ar.flags=rcs
4242
compiler.objcopy.cmd=arm-none-eabi-objcopy

0 commit comments

Comments
 (0)