llvm-doe: fix typo breaking "spack external find" (#23399)

Fixes the following error when 'flang' is found on the system:

   $ ./bin/spack external find
   ==> Error: name 'compiler' is not defined
This commit is contained in:
Tiziano Müller 2021-05-03 17:12:51 +02:00 committed by GitHub
parent 74ed861657
commit 61232796da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ def determine_variants(cls, exes, version_str):
compilers['c'] = exe
elif 'flang' in exe:
variants.append('+flang')
compiler['fc'] = exe
compilers['fc'] = exe
compilers['f77'] = exe
elif 'ld.lld' in exe:
lld_found = True