From fb1abf8e3c02cf82bc94988f3a7b11d8fb6f00f1 Mon Sep 17 00:00:00 2001 From: h2zero Date: Sun, 18 Jan 2026 14:06:44 -0700 Subject: [PATCH] Use C++ 20 by default and update compiler. --- builder/frameworks/arduino/nrf5.py | 4 ++-- platform.json | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/builder/frameworks/arduino/nrf5.py b/builder/frameworks/arduino/nrf5.py index 98c3e5f..73b74db 100644 --- a/builder/frameworks/arduino/nrf5.py +++ b/builder/frameworks/arduino/nrf5.py @@ -34,7 +34,7 @@ env.Append( ASFLAGS=["-x", "assembler-with-cpp"], - CFLAGS=["-std=gnu11"], + CFLAGS=["-std=gnu17"], CCFLAGS=[ "-Os", # optimize for size @@ -50,7 +50,7 @@ CXXFLAGS=[ "-fno-rtti", "-fno-exceptions", - "-std=gnu++11", + "-std=gnu++20", "-fno-threadsafe-statics" ], diff --git a/platform.json b/platform.json index 931b2b6..6f84d52 100644 --- a/platform.json +++ b/platform.json @@ -31,15 +31,12 @@ "framework-n-able-arduino": { "type": "framework", "optional": false, - "version": "https://github.com/h2zero/n-able-Arduino.git@0.3.0" + "version": "https://github.com/h2zero/n-able-Arduino.git" }, "toolchain-gccarmnoneeabi": { "type": "toolchain", "owner": "platformio", - "version": ">=1.80301.0,<1.100301.0", - "optionalVersions": [ - "~1.90301.0" - ] + "version": "~1.100301.0" }, "tool-adafruit-nrfutil": { "owner": "platformio",