From a83456dd7b4aef6044df5f3449dcbedc83b7784a Mon Sep 17 00:00:00 2001 From: downloadico Date: Mon, 31 Oct 2022 16:05:49 -0600 Subject: julia: don't look for the openlibm libraries when unneeded (#33626) * julia: don't look for the openlibm libraries when unneeded Cause spack to *not* check for the existence of the openlibm libraries (by adding it to the pkgs list) when ~openlibm is specified. * [@spackbot] updating style on behalf of downloadico Co-authored-by: downloadico --- var/spack/repos/builtin/packages/julia/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/julia/package.py b/var/spack/repos/builtin/packages/julia/package.py index 28b14c1f3a..bf7297357d 100644 --- a/var/spack/repos/builtin/packages/julia/package.py +++ b/var/spack/repos/builtin/packages/julia/package.py @@ -204,12 +204,13 @@ class Julia(MakefilePackage): "mpfr", "nghttp2", "openblas", - "openlibm", "pcre2", "suite-sparse", "utf8proc", "zlib", ] + if "+openlibm" in self.spec: + pkgs.append("openlibm") if self.spec.satisfies("@1.7.0:"): pkgs.append("libblastrampoline") for pkg in pkgs: -- cgit v1.2.3-70-g09d2