From 94b7ff38232ca680dab8498a2c205118dfe9c3d8 Mon Sep 17 00:00:00 2001 From: makise-homura Date: Fri, 19 Apr 2019 18:39:04 +0300 Subject: [PATCH] Correctly find lfortran for Elbrus compiler --- run_unittests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run_unittests.py b/run_unittests.py index 316525dfc..faef00f91 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -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'):