[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.
This commit is contained in:
Ray Speth 2016-04-05 11:25:15 -04:00
parent 4799d19b39
commit 60eed786fa

View file

@ -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