Correctly find lfortran for Elbrus compiler

This commit is contained in:
makise-homura 2019-04-19 18:39:04 +03:00
parent 29267b7716
commit 94b7ff3823
1 changed files with 5 additions and 1 deletions

View File

@ -5841,7 +5841,11 @@ class NativeFileTests(BasePlatformTests):
@skip_if_env_set('FC')
def test_fortran_compiler(self):
def cb(comp):
if comp.id == 'gcc':
if comp.id == 'lcc':
if shutil.which('lfortran'):
return 'lfortran', 'lcc'
raise unittest.SkipTest('No alternate Fortran implementation.')
elif comp.id == 'gcc':
if shutil.which('ifort'):
return 'ifort', 'intel'
elif shutil.which('flang'):