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 <downloadico@users.noreply.github.com>
This commit is contained in:
downloadico 2022-10-31 16:05:49 -06:00 committed by GitHub
parent 269304a7ac
commit a83456dd7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,12 +204,13 @@ def setup_build_environment(self, env):
"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: