asp: fix intel-oneapi-compilers-classic
This commit is contained in:
parent
eb270afa0c
commit
10479101fa
@ -2977,11 +2977,15 @@ def possible_compilers(*, configuration) -> List["spack.spec.Spec"]:
|
|||||||
# FIXME (compiler as nodes): Discard early specs that are not marked for this target?
|
# FIXME (compiler as nodes): Discard early specs that are not marked for this target?
|
||||||
|
|
||||||
if using_libc_compatibility() and not c_compiler_runs(c):
|
if using_libc_compatibility() and not c_compiler_runs(c):
|
||||||
compiler = c.extra_attributes["compilers"]["c"]
|
try:
|
||||||
tty.debug(
|
compiler = c.extra_attributes["compilers"]["c"]
|
||||||
f"the C compiler {compiler} does not exist, or does not run correctly."
|
tty.debug(
|
||||||
f" The compiler {c} will not be used during concretization."
|
f"the C compiler {compiler} does not exist, or does not run correctly."
|
||||||
)
|
f" The compiler {c} will not be used during concretization."
|
||||||
|
)
|
||||||
|
except KeyError:
|
||||||
|
tty.debug(f"the spec {c} does not provide a C compiler.")
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if using_libc_compatibility() and not CompilerPropertyDetector(c).default_libc():
|
if using_libc_compatibility() and not CompilerPropertyDetector(c).default_libc():
|
||||||
|
Loading…
Reference in New Issue
Block a user