From bfaaed3a28dc7a4b431df9d17aa4b3e9e3163eca Mon Sep 17 00:00:00 2001 From: edoapra Date: Tue, 17 Oct 2023 10:25:28 -0700 Subject: [PATCH] updates for MacOS flang-new version 17 --- src/config/makefile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/makefile.h b/src/config/makefile.h index 059614b95f..1b39e2c480 100644 --- a/src/config/makefile.h +++ b/src/config/makefile.h @@ -2219,7 +2219,7 @@ ifneq ($(TARGET),LINUX) GNU_GE_4_6=true FOPTIONS+=-fno-backslash - FLANG_VERSION=$(shell $(FC) --version |head -1 |cut -d ' ' -f 4 |cut -d . -f 1) + FLANG_VERSION=$(shell $(FC) --version |head -1 || sed 's/^.*\(version\)//'|cut -d . -f 1) FLANG_LT_17 = $(shell [ $(FLANG_VERSION) -lt 17 ] && echo true) ifeq ($(FLANG_LT_17),true) FOPTIONS+=-mcmodel=medium