Skip to content

Commit c316cf3

Browse files
committed
fix incopatibility with icpx ISO C++17
1 parent 2b58a8b commit c316cf3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src_cpp/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ endif
7979
override CPPFLAGS += -I.
8080
override CFLAGS += -g -O0 -Wall -Wno-long-long
8181
override CXXFLAGS += -g -O0 -Wall -Wextra -pedantic -Wno-long-long
82+
ifeq "$(CC)" "icx"
83+
CFLAGS += -std=c++11
84+
endif
8285
ifdef WITH_OPENMP
8386
override CFLAGS += -fopenmp
8487
override CXXFLAGS += -fopenmp

0 commit comments

Comments
 (0)