openmpi find external fixup (#21354)

This commit is contained in:
Greg Becker
2021-01-27 15:27:17 -08:00
committed by GitHub
parent 18b3688cd1
commit 0d521d56ec

View File

@@ -446,6 +446,7 @@ 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)
if match:
compiler_spec = get_spack_compiler_spec( compiler_spec = get_spack_compiler_spec(
os.path.dirname(match.group(1))) os.path.dirname(match.group(1)))
if compiler_spec: if compiler_spec: