We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5654ad9 commit e3b0bebCopy full SHA for e3b0beb
fdpp/clang.mak
@@ -15,10 +15,9 @@ CLANG_VER := $(shell $(CXX) --version 2>&1 | head -n 1 | grep clang | \
15
ifeq ($(CLANG_VER),)
16
# its gcc, set to 16 as it had buggy packed diagnostic, similar to gcc
17
CLANG_VER := 16
18
-GCC_VER := $(shell $(CXX) --version 2>&1 | head -n 1 | grep GCC | \
19
- sed -E 's/.+ \(GCC\) ([^.]+)\.[^.]+\.[^ ]+.*/\1/')
+GCC_VER := $(shell $(CXX) --version 2>&1 | head -n 1 | grep g++)
20
ifeq ($(GCC_VER),)
21
-$(error unknown compiler)
+$(error unknown compiler $(CXX) $(shell $(CXX) --version))
22
endif
23
24
FLEX = $(shell which flex 2>/dev/null)
0 commit comments