MSVC preview version breaks clingo build (#41185)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
This commit is contained in:
John W. Parent 2023-11-20 15:55:07 -05:00 committed by Massimiliano Culpo
parent 712db8c85c
commit e8bbd7763c

View file

@ -213,7 +213,8 @@ def _root_spec(spec_str: str) -> str:
if str(spack.platforms.host()) == "darwin": if str(spack.platforms.host()) == "darwin":
spec_str += " %apple-clang" spec_str += " %apple-clang"
elif str(spack.platforms.host()) == "windows": 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: else:
spec_str += " %gcc" spec_str += " %gcc"