From b1eb5ae32c0b20ef5748aa17ef56afb1c3f8833b Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Fri, 15 Nov 2024 12:46:46 +0000 Subject: [PATCH] Sort settings --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 549582637..2406f9352 100644 --- a/Makefile +++ b/Makefile @@ -52,13 +52,12 @@ endif $(info detected compiler is $(COMPILER_NAME) major version $(COMPILER_VERSION_NUMBER_MAJOR)) -ifeq ($(COMPILER_NAME),NVHPC) - CXXFLAGS += -std=c++23 -else - CXXFLAGS += -std=c++23 -ftree-vectorize -Wunused-macros -Werror -Wno-error=unknown-pragmas -Wno-error=cast-function-type -MD -MP -ftrivial-auto-var-init=pattern +CXXFLAGS += -std=c++23 -fstrict-aliasing + +ifneq ($(COMPILER_NAME),NVHPC) + CXXFLAGS += -ftree-vectorize -Wunused-macros -Werror -Wno-error=unknown-pragmas -Wno-error=cast-function-type -MD -MP -ftrivial-auto-var-init=pattern endif -CXXFLAGS += -fstrict-aliasing # CXXFLAGS += -DUSE_SIMPSON_INTEGRATOR=true # profile-guided optimisation