aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-02-10 18:38:57 +0100
committerEelco Dolstra <edolstra@gmail.com>2023-02-10 18:38:57 +0100
commit5978ceb2715127cd081146272fc910f17232b5ec (patch)
tree105ec05b11790fac88daf49b6a3f570b7c6803a3 /Makefile
parent9ebbe35817a7f7becf77d9f0cd76c54d693f6f28 (diff)
Fix building with GCC 9
Nixpkgs on aarch64-linux is currently stuck on GCC 9 (https://github.com/NixOS/nixpkgs/issues/208412) and using gcc11Stdenv doesn't work either. So use c++2a instead of c++20 for now. Unfortunately this means we can't use some C++20 features for now (like std::span).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 42d11638b..8675c9925 100644
--- a/Makefile
+++ b/Makefile
@@ -36,4 +36,4 @@ endif
include mk/lib.mk
-GLOBAL_CXXFLAGS += -g -Wall -include config.h -std=c++20 -I src
+GLOBAL_CXXFLAGS += -g -Wall -include config.h -std=c++2a -I src