Skip to content

Commit

Permalink
Passing c++11 flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Feb 28, 2017
1 parent 8c826a8 commit da00311
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ ifeq ($(INTEL), 1)
# if you wish to use the Intel compiler, please do "make INTEL=1".
YOURCXX ?= /opt/intel/bin/icpc
ifeq ($(DEBUG),1)
CXXFLAGS = -O3 -Wall -ansi -DDEBUG=1 -D_GLIBCXX_DEBUG -ggdb
CXXFLAGS = -std=c++11 -O3 -Wall -ansi -DDEBUG=1 -D_GLIBCXX_DEBUG -ggdb
else
CXXFLAGS = -O3 -Wall -ansi -DNDEBUG=1 -ggdb
CXXFLAGS = -std=c++11 -O3 -Wall -ansi -DNDEBUG=1 -ggdb
endif # debug
else #intel
YOURCXX ?= g++
ifeq ($(DEBUG),1)
CXXFLAGS = -Weffc++ -pedantic -ggdb -DDEBUG=1 -D_GLIBCXX_DEBUG -Wall -Wextra -Wcast-align
CXXFLAGS = -std=c++11 -Weffc++ -pedantic -ggdb -DDEBUG=1 -D_GLIBCXX_DEBUG -Wall -Wextra -Wcast-align
else
CXXFLAGS = -Weffc++ -pedantic -O3 -Wall -Wextra -Wcast-align
CXXFLAGS = -std=c++11 -Weffc++ -pedantic -O3 -Wall -Wextra -Wcast-align
endif #debug
endif #intel

Expand Down

0 comments on commit da00311

Please sign in to comment.