Skip to content

Commit 292d2a9

Browse files
committed
Use -dumpfullversion if available in makefiles
1 parent d88c95f commit 292d2a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

make/compiler_flags

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ifneq (,$(findstring g++,$(CXX)))
5858
CXX_TYPE ?= gcc
5959
endif
6060
CXX_TYPE ?= other
61-
CXX_VERSION := $(shell $(CXX) -dumpversion 2>&1)
61+
CXX_VERSION := $(shell $(CXX) -dumpfullversion -dumpversion 2>&1)
6262
CXX_MAJOR := $(word 1,$(subst ., ,$(CXX_VERSION)))
6363
CXX_MINOR := $(word 2,$(subst ., ,$(CXX_VERSION)))
6464

0 commit comments

Comments
 (0)