Skip to content

Commit

Permalink
Request C++17 by default, add fallback flag for now
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed May 6, 2024
1 parent ee65daa commit 07cb7ab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions make/compiler_flags
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,12 @@ CPPFLAGS_SUNDIALS ?= -DNO_FPRINTF_OUTPUT $(CPPFLAGS_OPTIM_SUNDIALS) $(CXXFLAGS_F
#CPPFLAGS_GTEST ?=


## setup compiler flags
CXXFLAGS_LANG ?= -std=c++1y
ifeq ($(STAN_USE_CPP14),)
CXXFLAGS_LANG ?= -std=c++17
else
$(warning "Because STAN_USE_CPP14 is set C++14 standard is requested. This will not be possible in the next release!")
CXXFLAGS_LANG ?= -std=c++1y
endif
#CXXFLAGS_BOOST ?=
CXXFLAGS_SUNDIALS ?= -pipe $(CXXFLAGS_OPTIM_SUNDIALS) $(CPPFLAGS_FLTO_SUNDIALS)
#CXXFLAGS_GTEST
Expand Down

0 comments on commit 07cb7ab

Please sign in to comment.