CONFIG: update c++ standard to c++17.

This commit is contained in:
mattijs 2024-12-12 11:55:52 +00:00
parent 59c74e53ff
commit 44f7a7268a
12 changed files with 15 additions and 15 deletions

View File

@ -3,7 +3,7 @@
#------------------------------------------------------------------------------
SUFFIXES += .C .cc .cpp .cxx
CC := clang++$(COMPILER_VERSION) -std=c++14
CC := clang++$(COMPILER_VERSION) -std=c++17
c++ARCH :=
c++DBUG :=

View File

@ -6,7 +6,7 @@
#------------------------------------------------------------------------------
SUFFIXES += .C .cc .cpp .cxx
CC := g++$(COMPILER_VERSION) -std=c++14
CC := g++$(COMPILER_VERSION) -std=c++17
c++ARCH :=
c++DBUG :=

View File

@ -3,7 +3,7 @@
#------------------------------------------------------------------------------
SUFFIXES += .C .cc .cpp .cxx
CC := icpc$(COMPILER_VERSION) -std=c++14
CC := icpc$(COMPILER_VERSION) -std=c++17
c++ARCH :=
c++DBUG :=

View File

@ -3,7 +3,7 @@
#------------------------------------------------------------------------------
SUFFIXES += .C .cc .cpp .cxx
CC := icpx$(COMPILER_VERSION) -std=c++14
CC := icpx$(COMPILER_VERSION) -std=c++17
c++ARCH :=
c++DBUG :=

View File

@ -3,7 +3,7 @@
#------------------------------------------------------------------------------
SUFFIXES += .C .cc .cpp .cxx
CC := nvc++$(COMPILER_VERSION) -std=c++14
CC := nvc++$(COMPILER_VERSION) -std=c++17
c++ARCH :=
c++DBUG :=

View File

@ -7,7 +7,7 @@ ifeq (,$(strip $(NVARCH)))
NVARCH = 70
endif
NVCC = nvcc -std=c++14 --compiler-options='-fPIC'
NVCC = nvcc -std=c++17 --compiler-options='-fPIC'
cuARCH = -arch=sm_$(NVARCH)
cuOPT = -O3

View File

@ -2,7 +2,7 @@
include $(GENERAL_RULES)/Clang/c++
ifneq (,$(findstring +xcrun,$(WM_COMPILE_CONTROL)))
CC := xcrun c++ -std=c++14
CC := xcrun c++ -std=c++17
endif
c++ARCH := -m64 -pthread -ftrapping-math

View File

@ -5,6 +5,6 @@
sinclude $(GENERAL_RULES)/common/c++Opt
cxx_compiler := $(shell which clang++)
CC := $(shell echo "$(cxx_compiler)" | sed -e 's@/bin/[^/]*@/libexec/c++-analyzer@') -std=c++14 -m64
CC := $(shell echo "$(cxx_compiler)" | sed -e 's@/bin/[^/]*@/libexec/c++-analyzer@') -std=c++17 -m64
#------------------------------------------------------------------------------

View File

@ -1,9 +1,9 @@
#------------------------------------------------------------------------------
# Cray compiler - gcc variant/wrapper. New enough to support c++14
# Cray compiler - gcc variant/wrapper. New enough to support c++17
#------------------------------------------------------------------------------
include $(GENERAL_RULES)/Gcc/c++
CC := CC -std=c++14
CC := CC -std=c++17
c++ARCH := -m64 -pthread
ifneq (,$(strip $(WM_COMPILE_OPTION)))

View File

@ -1,10 +1,10 @@
#------------------------------------------------------------------------------
# mingw is gcc, but new enough to support c++14
# NB: gnu++14 (not c++14) to ensure __STRICT_ANSI__ is not defined
# mingw is gcc, but new enough to support c++17
# NB: gnu++17 (not c++17) to ensure __STRICT_ANSI__ is not defined
#------------------------------------------------------------------------------
include $(GENERAL_RULES)/Gcc/c++
CC := x86_64-w64-mingw32-g++ -std=gnu++14
CC := x86_64-w64-mingw32-g++ -std=gnu++17
c++ARCH := -m64 -pthread
ifneq (,$(strip $(WM_COMPILE_OPTION)))

View File

@ -3,7 +3,7 @@
#------------------------------------------------------------------------------
include $(GENERAL_RULES)/Clang/c++
CC := armclang++$(COMPILER_VERSION) -std=c++14
CC := armclang++$(COMPILER_VERSION) -std=c++17
c++ARCH := -mcpu=native -pthread
ifneq (,$(strip $(WM_COMPILE_OPTION)))

View File

@ -3,7 +3,7 @@
#------------------------------------------------------------------------------
include $(GENERAL_RULES)/Clang/c++
CC := FCC$(COMPILER_VERSION) -std=c++14
CC := FCC$(COMPILER_VERSION) -std=c++17
c++ARCH := -pthread
ifneq (,$(strip $(WM_COMPILE_OPTION)))