summaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2022-06-06 00:47:22 +0200
committerGitHub <noreply@github.com>2022-06-06 08:47:22 +1000
commite89478eb0fe582d1a30a882e278927e31c9cdcc7 (patch)
treefcd0b434523d300291bbe8e07b4af657300b5b86 /platforms
parent6221c861860e6e2083ef4de6eb67ed74a1636c4a (diff)
downloadqmk_firmware-e89478eb0fe582d1a30a882e278927e31c9cdcc7.tar.gz
qmk_firmware-e89478eb0fe582d1a30a882e278927e31c9cdcc7.zip
[Core] Update C standard to GNU11, C++ to GNU++14 (#17114)
Diffstat (limited to 'platforms')
-rw-r--r--platforms/arm_atsam/platform.mk2
-rw-r--r--platforms/avr/platform.mk2
-rw-r--r--platforms/test/platform.mk2
3 files changed, 3 insertions, 3 deletions
diff --git a/platforms/arm_atsam/platform.mk b/platforms/arm_atsam/platform.mk
index b49bf764d7..9618838dc3 100644
--- a/platforms/arm_atsam/platform.mk
+++ b/platforms/arm_atsam/platform.mk
@@ -30,7 +30,7 @@ COMPILEFLAGS += -mthumb
CFLAGS += $(COMPILEFLAGS)
CXXFLAGS += $(COMPILEFLAGS)
-CXXFLAGS += -fno-exceptions -std=c++11
+CXXFLAGS += -fno-exceptions $(CXXSTANDARD)
LDFLAGS +=-Wl,--gc-sections
LDFLAGS += -Wl,-Map="%OUT%%PROJ_NAME%.map"
diff --git a/platforms/avr/platform.mk b/platforms/avr/platform.mk
index 978199b385..b51a94c93a 100644
--- a/platforms/avr/platform.mk
+++ b/platforms/avr/platform.mk
@@ -38,7 +38,7 @@ CFLAGS += -fno-inline-small-functions
CFLAGS += -fno-strict-aliasing
CXXFLAGS += $(COMPILEFLAGS)
-CXXFLAGS += -fno-exceptions -std=c++11
+CXXFLAGS += -fno-exceptions $(CXXSTANDARD)
LDFLAGS += -Wl,--gc-sections
diff --git a/platforms/test/platform.mk b/platforms/test/platform.mk
index eb2424ec5c..f07c863e69 100644
--- a/platforms/test/platform.mk
+++ b/platforms/test/platform.mk
@@ -31,4 +31,4 @@ CFLAGS += -fno-strict-aliasing
CXXFLAGS += $(COMPILEFLAGS)
CXXFLAGS += -fno-exceptions
-CXXFLAGS += -std=gnu++11
+CXXFLAGS += $(CXXSTANDARD)