From 5154d696297a6b00a148f09967688dd27113275d Mon Sep 17 00:00:00 2001 From: "John W. Parent" <45471568+johnwparent@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:55:07 -0500 Subject: [PATCH] MSVC preview version breaks clingo build (#41185) Co-authored-by: Harmen Stoppels --- lib/spack/spack/bootstrap/_common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/bootstrap/_common.py b/lib/spack/spack/bootstrap/_common.py index 69f32d6263..0b8192f77f 100644 --- a/lib/spack/spack/bootstrap/_common.py +++ b/lib/spack/spack/bootstrap/_common.py @@ -213,7 +213,8 @@ def _root_spec(spec_str: str) -> str: if str(spack.platforms.host()) == "darwin": spec_str += " %apple-clang" elif str(spack.platforms.host()) == "windows": - spec_str += " %msvc" + # TODO (johnwparent): Remove version constraint when clingo patch is up + spec_str += " %msvc@:19.37" else: spec_str += " %gcc"