Skip to content

Commit e3b0beb

Browse files
committed
try to fix build
1 parent 5654ad9 commit e3b0beb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fdpp/clang.mak

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ CLANG_VER := $(shell $(CXX) --version 2>&1 | head -n 1 | grep clang | \
1515
ifeq ($(CLANG_VER),)
1616
# its gcc, set to 16 as it had buggy packed diagnostic, similar to gcc
1717
CLANG_VER := 16
18-
GCC_VER := $(shell $(CXX) --version 2>&1 | head -n 1 | grep GCC | \
19-
sed -E 's/.+ \(GCC\) ([^.]+)\.[^.]+\.[^ ]+.*/\1/')
18+
GCC_VER := $(shell $(CXX) --version 2>&1 | head -n 1 | grep g++)
2019
ifeq ($(GCC_VER),)
21-
$(error unknown compiler)
20+
$(error unknown compiler $(CXX) $(shell $(CXX) --version))
2221
endif
2322
endif
2423
FLEX = $(shell which flex 2>/dev/null)

0 commit comments

Comments
 (0)