Skip to content

Commit fb1abf8

Browse files
committed
Use C++ 20 by default and update compiler.
1 parent b725b5c commit fb1abf8

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

builder/frameworks/arduino/nrf5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
env.Append(
3535
ASFLAGS=["-x", "assembler-with-cpp"],
3636

37-
CFLAGS=["-std=gnu11"],
37+
CFLAGS=["-std=gnu17"],
3838

3939
CCFLAGS=[
4040
"-Os", # optimize for size
@@ -50,7 +50,7 @@
5050
CXXFLAGS=[
5151
"-fno-rtti",
5252
"-fno-exceptions",
53-
"-std=gnu++11",
53+
"-std=gnu++20",
5454
"-fno-threadsafe-statics"
5555
],
5656

platform.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@
3131
"framework-n-able-arduino": {
3232
"type": "framework",
3333
"optional": false,
34-
"version": "https://github.com/h2zero/n-able-Arduino.git@0.3.0"
34+
"version": "https://github.com/h2zero/n-able-Arduino.git"
3535
},
3636
"toolchain-gccarmnoneeabi": {
3737
"type": "toolchain",
3838
"owner": "platformio",
39-
"version": ">=1.80301.0,<1.100301.0",
40-
"optionalVersions": [
41-
"~1.90301.0"
42-
]
39+
"version": "~1.100301.0"
4340
},
4441
"tool-adafruit-nrfutil": {
4542
"owner": "platformio",

0 commit comments

Comments
 (0)