summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChris Marsh <chrismarsh.c2@gmail.com>2024-10-10 09:45:51 -0600
committerGitHub <noreply@github.com>2024-10-10 11:45:51 -0400
commit8fae388f5745785bb898dba6f5e48b471954cb72 (patch)
tree1886ee86f017fdf57014fff5e010fcddbfba12c5 /var
parenta332e0c1433eb61da232a79a7e16c3fd02dd9a45 (diff)
downloadspack-8fae388f5745785bb898dba6f5e48b471954cb72.tar.gz
spack-8fae388f5745785bb898dba6f5e48b471954cb72.tar.bz2
spack-8fae388f5745785bb898dba6f5e48b471954cb72.tar.xz
spack-8fae388f5745785bb898dba6f5e48b471954cb72.zip
pcre2: Fix spec reference without self
Fixes bug introduced in #46788
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pcre2/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/pcre2/package.py b/var/spack/repos/builtin/packages/pcre2/package.py
index eb7186ed4f..df79accc6e 100644
--- a/var/spack/repos/builtin/packages/pcre2/package.py
+++ b/var/spack/repos/builtin/packages/pcre2/package.py
@@ -82,7 +82,7 @@ class CMakeBuilder(spack.build_systems.cmake.CMakeBuilder):
# by default, this is in parity with the autotools build, so on
# linux and MacOS, the produced binaries are identical, Windows is the
# only outlier
- if spec.satisfies("platform=windows"):
+ if self.spec.satisfies("platform=windows"):
args.append(self.define_from_variant("BUILD_SHARED_LIBS", "shared"))
# PCRE allows building shared and static at the same time
# this is bad practice and a problem on some platforms