From e1024fd185fb291be18626de27c380b8436163af Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Mon, 29 Jul 2024 14:11:32 +0200 Subject: [PATCH] build/gcc: Fix Makefile to use c++17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit or else build breaks like this: astyle.h:332:44: error: ‘std::string_view’ has not been declared 332 | const std::string* findHeader(std::string_view line, int i, | ^~~~~~~~~~~ --- build/gcc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/gcc/Makefile b/build/gcc/Makefile index 84bf8e86..6fd14ecc 100644 --- a/build/gcc/Makefile +++ b/build/gcc/Makefile @@ -36,7 +36,7 @@ SYSCONF_PATH=$(prefix)/share/doc/astyle bindir = bin objdir = obj ipath=$(prefix)/bin -CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11 +CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++17 JAVAINCS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux INSTALL=install -o $(USER) -g $(USER) -- 2.45.2