Use a stub compiler wrapper on windows

This commit is contained in:
Massimiliano Culpo
2024-12-23 22:06:37 +01:00
parent 95115d4290
commit 4bd9ff2ef0
3 changed files with 29 additions and 16 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1506,7 +1506,7 @@ def __init__(self, tests: bool = False):
set
)
self.possible_compilers: List[KnownCompiler] = []
self.possible_compilers: List[spack.spec.Spec] = []
self.possible_oses: Set = set()
self.variant_values_from_specs: Set = set()
self.version_constraints: Set = set()
@@ -3151,13 +3151,12 @@ def define_runtime_constraints(self):
# FIXME (compiler as nodes): think of using isinstance(compiler_cls, WrappedCompiler)
# Add a dependency on the compiler wrapper
if sys.platform != "win32":
recorder("*").depends_on(
"compiler-wrapper",
when=f"%{compiler.name}@{compiler.versions}",
type="build",
description=f"Add the compiler wrapper when using {compiler}",
)
recorder("*").depends_on(
"compiler-wrapper",
when=f"%{compiler.name}@{compiler.versions}",
type="build",
description=f"Add the compiler wrapper when using {compiler}",
)
if not using_libc_compatibility():
continue