Skip to content

Commit 57fdb12

Browse files
committed
.
1 parent 57cebce commit 57fdb12

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

examples/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ endif
100100
ifneq ($(findstring icpc,$(notdir $(CXX))),)
101101
IS_ICPC = 1
102102
endif
103+
ifeq ($(IS_GCC)$(IS_CLANG)$(IS_ICPC),)
104+
CXX_ID := $(shell $(CXX) --version 2>&1 | head -n 1)
105+
ifneq ($(findstring clang,$(CXX_ID)),)
106+
IS_CLANG = 1
107+
else ifneq ($(findstring GCC,$(CXX_ID)),)
108+
IS_GCC = 1
109+
endif
110+
endif
103111

104112
CXXVER := $(CXX)
105113
CFLAGS = -I.. -Wall -Wextra -Wfatal-errors -Werror=unknown-pragmas -Werror=unused-label

0 commit comments

Comments
 (0)