[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:
parent
4799d19b39
commit
60eed786fa
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue