Skip to content

Commit e536c77

Browse files
authored
Silence missing gfortran errors in Make.inc (JuliaLang#48403)
When we attempt to invoke `gfortran` to determine the local `libgfortran` ABI version that we should attempt to mimic, if `gfortran` is not installed we get a harmless error printed out to `stderr`: ``` /bin/sh: line 1: gfortran: command not found ``` This should silence these errors, as they're not useful to us.
1 parent 9b1ffbb commit e536c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Make.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ USE_BINARYBUILDER ?= 0
11251125
endif
11261126

11271127
# Auto-detect triplet once, create different versions that we use as defaults below for each BB install target
1128-
FC_VERSION := $(shell $(FC) -dM -E - < /dev/null | grep __GNUC__ | cut -d' ' -f3)
1128+
FC_VERSION := $(shell $(FC) -dM -E - < /dev/null 2>/dev/null | grep __GNUC__ | cut -d' ' -f3)
11291129
ifeq ($(USEGCC)$(FC_VERSION),1)
11301130
FC_OR_CC_VERSION := $(shell $(CC) -dumpfullversion -dumpversion 2>/dev/null | cut -d'.' -f1)
11311131
# n.b. clang's __GNUC__ macro pretends to be gcc 4.2.1, so leave it as the empty string here if the compiler is not certain to be GCC

0 commit comments

Comments
 (0)