From 8fae388f5745785bb898dba6f5e48b471954cb72 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Thu, 10 Oct 2024 09:45:51 -0600 Subject: pcre2: Fix spec reference without self Fixes bug introduced in #46788 --- var/spack/repos/builtin/packages/pcre2/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2