Skip to content

Commit d8b88cb

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

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

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
@@ -36,10 +36,7 @@
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.220327"
4340
},
4441
"tool-adafruit-nrfutil": {
4542
"owner": "platformio",
@@ -69,4 +66,4 @@
6966
"version": "~1.164.0"
7067
}
7168
}
72-
}
69+
}

0 commit comments

Comments
 (0)