From 728d14879bfcc49e22f0d2a82664541968def1e9 Mon Sep 17 00:00:00 2001 From: Rangi Date: Wed, 20 May 2026 17:09:23 -0400 Subject: [PATCH] Consistently use `-std=c++2a`, not `-std=c++20` Commit 63a911e657f62ddb49148f9f6e33c77d5eebdbac switched to `-std=c++20` since at the time we required GCC 10 or higher. Commit d5ce5329ea3ac8255d1cc1fa30c260bc0d534b77 partially reverted to `-std=c++2a` since we once again support GCC 9, which did not yet handle `std=c++20`. --- Makefile | 2 +- compile_flags.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b997dbfd..ff8dcf6d 100644 --- a/Makefile +++ b/Makefile @@ -257,7 +257,7 @@ tidy: src/asm/parser.hpp src/link/script.hpp iwyu: $Qenv ${MAKE} \ CXX="include-what-you-use" \ - REALCXXFLAGS="-std=c++20 -I include" + REALCXXFLAGS="-std=c++2a -I include" # Target used in development to conveniently invoke RGBDS binaries with Wine. wine-shim: diff --git a/compile_flags.txt b/compile_flags.txt index 6b8032ce..4cdeefd4 100644 --- a/compile_flags.txt +++ b/compile_flags.txt @@ -1,4 +1,4 @@ --std=c++20 +-std=c++2a -I include -fno-exceptions