openmpi find external fixup (#21354)
This commit is contained in:
parent
18b3688cd1
commit
0d521d56ec
1 changed files with 5 additions and 4 deletions
|
@ -446,10 +446,11 @@ def determine_variants(cls, exes, version):
|
||||||
|
|
||||||
# Get the appropriate compiler
|
# Get the appropriate compiler
|
||||||
match = re.search(r'\bC compiler absolute: (\S+)', output)
|
match = re.search(r'\bC compiler absolute: (\S+)', output)
|
||||||
compiler_spec = get_spack_compiler_spec(
|
if match:
|
||||||
os.path.dirname(match.group(1)))
|
compiler_spec = get_spack_compiler_spec(
|
||||||
if compiler_spec:
|
os.path.dirname(match.group(1)))
|
||||||
variants += "%" + str(compiler_spec)
|
if compiler_spec:
|
||||||
|
variants += "%" + str(compiler_spec)
|
||||||
results.append(variants)
|
results.append(variants)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue