From 60eed786fab1e5d3a70e4737bcea808c187f396c Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 5 Apr 2016 11:25:15 -0400 Subject: [PATCH] [SCons] Fix fallback behavior with explicitly-specifed Fortran compiler If the user has explicitly specified a Fortran compiler, we shouldn't fall back to using a different one if the specified one cannot be found. --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 645b70393..d57850359 100644 --- a/SConstruct +++ b/SConstruct @@ -895,7 +895,8 @@ def check_fortran(compiler, expected=False): env['FORTRAN'] = compiler return True elif expected: - print "WARNING: Couldn't find specified Fortran compiler: '%s'" % compiler + print "ERROR: Couldn't find specified Fortran compiler: '%s'" % compiler + sys.exit(1) return False