Skip to content

Commit

Permalink
Change to c++14 and move to TACS_Common.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
bburke38 committed Nov 2, 2023
1 parent b0c40ad commit 8e04b3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile.in.info
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ MAKE = make -j 8
AR_FLAGS = rcs

# Flags for debugging and regular compilation versions
EXTRA_DEBUG_CC_FLAGS = -fPIC -g -std=c++11
EXTRA_CC_FLAGS = -fPIC -O3 -std=c++11
EXTRA_DEBUG_CC_FLAGS = -fPIC -g
EXTRA_CC_FLAGS = -fPIC -O3

# Use this if you have problems with mpich
# TACS_DEF = -DMPICH_IGNORE_CXX_SEEK
Expand Down
2 changes: 1 addition & 1 deletion TACS_Common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TACS_LD_FLAGS = ${EXTRA_LD_FLAGS} ${TACS_LD_CMD} ${TACS_EXTERN_LIBS}
# This is the one rule that is used to compile all the
# source code in TACS
%.o: %.cpp
${CXX} ${TACS_CC_FLAGS} -c $< -o $*.o
${CXX} ${TACS_CC_FLAGS} -std=c++14 -c $< -o $*.o
@echo
@echo " --- Compiled $*.cpp successfully ---"
@echo
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_mpi_flags():
libraries=libs,
library_dirs=lib_dirs,
runtime_library_dirs=runtime_lib_dirs,
extra_compile_args=["-std=c++11"],
extra_compile_args=["-std=c++14"],
)
)

Expand Down

0 comments on commit 8e04b3c

Please sign in to comment.