Windows: fix bootstrap and package install failure (#32942)

* Add patches for building clingo with MSVC
* Help python find clingo DLL
* If an executable is located in "C:\Program Files", Executable was
  running into issues with the extra space. This quotes the exe
  to ensure that it is treated as a single value.

Signed-off-by: Kiruya Momochi <65301509+KiruyaMomochi@users.noreply.github.com>
This commit is contained in:
百地 希留耶
2022-10-27 04:45:35 +08:00
committed by GitHub
parent 5d0ae001a1
commit 4ff8a6a9b7
5 changed files with 52 additions and 1 deletions

View File

@@ -64,6 +64,8 @@ class Clingo(CMakePackage):
depends_on("py-cffi", type=("build", "run"), when="@5.5.0: platform=cray")
patch("python38.patch", when="@5.3:5.4.0")
patch("size-t.patch", when="%msvc")
patch("vs2022.patch", when="%msvc@19.30:")
def patch(self):
# Doxygen is optional but can't be disabled with a -D, so patch