diff options
author | Satish Balay <balay@mcs.anl.gov> | 2023-03-31 11:28:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 09:28:48 -0700 |
commit | 14465e61aee0ec026603e9bc0422bd9b746b5176 (patch) | |
tree | 632383a768c22b41dcaa291e8d73d1e2ee8e3b3e /var | |
parent | 4064191fbc461055e85bd3c4e920a8edb888e86f (diff) | |
download | spack-14465e61aee0ec026603e9bc0422bd9b746b5176.tar.gz spack-14465e61aee0ec026603e9bc0422bd9b746b5176.tar.bz2 spack-14465e61aee0ec026603e9bc0422bd9b746b5176.tar.xz spack-14465e61aee0ec026603e9bc0422bd9b746b5176.zip |
petsc: builds break with gnu-make-4.4.1 (#35906)
Use 'make' detected by spack within petsc build
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/petsc/package.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index afb35758f2..35c1f29ae8 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -377,6 +377,7 @@ class Petsc(Package, CudaPackage, ROCmPackage): "--download-c2html=0", "--download-sowing=0", "--download-hwloc=0", + "--with-make-exec=%s" % make, ] # If 'cflags', 'fflags', and/or 'cxxflags' are not set, let the PETSc # configuration script choose defaults. @@ -580,7 +581,10 @@ class Petsc(Package, CudaPackage, ROCmPackage): def build(self, spec, prefix): self.revert_kokkos_nvcc_wrapper() - make("V=1") + if spec.satisfies("@:3.18.5"): + make("OMAKE_PRINTDIR=%s" % make, "V=1") + else: + make("V=1") def install(self, spec, prefix): self.revert_kokkos_nvcc_wrapper() |