diff --git a/lib/spack/spack/compilers/fj.py b/lib/spack/spack/compilers/fj.py index 3747d49d9b..c2cc66e110 100644 --- a/lib/spack/spack/compilers/fj.py +++ b/lib/spack/spack/compilers/fj.py @@ -26,7 +26,7 @@ class Fj(spack.compiler.Compiler): 'fc': 'fj/frt'} version_argument = '--version' - version_regex = r'\((?:FCC|FRT)\) ([\d.]+)' + version_regex = r'\((?:FCC|FRT)\) ([a-z\d.]+)' required_libs = ['libfj90i', 'libfj90f', 'libfjsrcinfo'] diff --git a/lib/spack/spack/test/compilers/detection.py b/lib/spack/spack/test/compilers/detection.py index f36e15804d..634189d02a 100644 --- a/lib/spack/spack/test/compilers/detection.py +++ b/lib/spack/spack/test/compilers/detection.py @@ -104,19 +104,19 @@ def test_clang_version_detection(version_str, expected_version): @pytest.mark.parametrize('version_str,expected_version', [ # C compiler - ('fcc (FCC) 4.0.0 20190314\n' + ('fcc (FCC) 4.0.0a 20190314\n' 'simulating gcc version 6.1\n' 'Copyright FUJITSU LIMITED 2019', - '4.0.0'), + '4.0.0a'), # C++ compiler - ('FCC (FCC) 4.0.0 20190314\n' + ('FCC (FCC) 4.0.0a 20190314\n' 'simulating gcc version 6.1\n' 'Copyright FUJITSU LIMITED 2019', - '4.0.0'), + '4.0.0a'), # Fortran compiler - ('frt (FRT) 4.0.0 20190314\n' + ('frt (FRT) 4.0.0a 20190314\n' 'Copyright FUJITSU LIMITED 2019', - '4.0.0') + '4.0.0a') ]) def test_fj_version_detection(version_str, expected_version): version = spack.compilers.fj.Fj.extract_version_from_output(version_str)