summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/bootstrap.py2
-rw-r--r--var/spack/repos/builtin/packages/re2c/package.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/bootstrap.py b/lib/spack/spack/bootstrap.py
index cfcaac2a31..2e0f2614e7 100644
--- a/lib/spack/spack/bootstrap.py
+++ b/lib/spack/spack/bootstrap.py
@@ -658,7 +658,7 @@ def _add_externals_if_missing():
spack.repo.path.get_pkg_class("gawk"),
]
if is_windows:
- search_list.extend(spack.repo.path.get_pkg_class("winbison"))
+ search_list.append(spack.repo.path.get_pkg_class("winbison"))
detected_packages = spack.detection.by_executable(search_list)
spack.detection.update_configuration(detected_packages, scope="bootstrap")
diff --git a/var/spack/repos/builtin/packages/re2c/package.py b/var/spack/repos/builtin/packages/re2c/package.py
index 19d55bfc35..eae59ed679 100644
--- a/var/spack/repos/builtin/packages/re2c/package.py
+++ b/var/spack/repos/builtin/packages/re2c/package.py
@@ -28,6 +28,8 @@ class Re2c(Package):
phases = ["configure", "build", "install"]
+ depends_on("cmake", when="platform=windows")
+
@property
def make_tool(self):
if is_windows: