We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57cebce commit 57fdb12Copy full SHA for 57fdb12
1 file changed
examples/Makefile
@@ -100,6 +100,14 @@ endif
100
ifneq ($(findstring icpc,$(notdir $(CXX))),)
101
IS_ICPC = 1
102
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
111
112
CXXVER := $(CXX)
113
CFLAGS = -I.. -Wall -Wextra -Wfatal-errors -Werror=unknown-pragmas -Werror=unused-label
0 commit comments