From 292d2a9ed0a1b1930ba7988ba8e49ce045409ddb Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Thu, 6 Jul 2023 16:15:54 -0400 Subject: [PATCH] Use -dumpfullversion if available in makefiles --- make/compiler_flags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/compiler_flags b/make/compiler_flags index 549de3925d0..1552381f232 100644 --- a/make/compiler_flags +++ b/make/compiler_flags @@ -58,7 +58,7 @@ ifneq (,$(findstring g++,$(CXX))) CXX_TYPE ?= gcc endif CXX_TYPE ?= other -CXX_VERSION := $(shell $(CXX) -dumpversion 2>&1) +CXX_VERSION := $(shell $(CXX) -dumpfullversion -dumpversion 2>&1) CXX_MAJOR := $(word 1,$(subst ., ,$(CXX_VERSION))) CXX_MINOR := $(word 2,$(subst ., ,$(CXX_VERSION)))