From 7cc4296a2c85fb8eda2ad8d87187b07fa69d7411 Mon Sep 17 00:00:00 2001 From: Doralitze <doralitze@chaotikum.org> Date: Wed, 5 Oct 2022 13:42:25 +0200 Subject: [PATCH] cfg: Use C++20 standard --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index af4b8df..d6cb710 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ -CFLAGS += -march=native -masm=intel -g -Og -fsanitize=address,signed-integer-overflow,undefined -pedantic -Wall -Wextra -Werror -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -Wshadow -Wformat=2 -Wfloat-equal -Wundef -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wwrite-strings -Wswitch-default -Wswitch-enum -Wconversion -Wunreachable-code -Winit-self -fno-strict-aliasing -Wno-unknown-warning-option -CXXFLAGS += ${CFLAGS} -std=c++11 -std=c++17 -Wuseless-cast -Weffc++ -I/usr/local/include -Wno-non-virtual-dtor +CFLAGS += -march=native -masm=intel -fsanitize=address,signed-integer-overflow,undefined -pedantic -Wall -Wextra -Werror -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wdouble-promotion -Wshadow -Wformat=2 -Wfloat-equal -Wundef -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wwrite-strings -Wswitch-default -Wswitch-enum -Wconversion -Wunreachable-code -Winit-self -fno-strict-aliasing -Wno-unknown-warning-option +CXXFLAGS += ${CFLAGS} -std=c++11 -std=c++17 -std=c++20 -Wuseless-cast -Weffc++ -I/usr/local/include -Wno-non-virtual-dtor DEPFLAGS = -MT $@ -MMD -MP -MF $(patsubst ${OBJDIR}/%.o,${DEPDIR}/%.d,$@) +CFLAGS_DEBUG = -g -Og +CFLAGS_RELEASE = -O3 -msse2 -mavx + +CFLAGS += ${CFLAGS_DEBUG} + PODOMAIN ?= rmrf POVERSION ?= 0.1 POLANGS ?= de en -- GitLab