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 GitHub
parent d272c49fb6
commit 5154d69629
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"