hypre: fix ~fortran
variant (#50480)
* hypre: fix ~fortran variant * Fix typos
This commit is contained in:
parent
37abfc7541
commit
ac08428f20
@ -352,7 +352,7 @@ def setup_build_environment(self, env: EnvironmentModifications) -> None:
|
|||||||
if spec.satisfies("+mpi"):
|
if spec.satisfies("+mpi"):
|
||||||
env.set("CC", spec["mpi"].mpicc)
|
env.set("CC", spec["mpi"].mpicc)
|
||||||
env.set("CXX", spec["mpi"].mpicxx)
|
env.set("CXX", spec["mpi"].mpicxx)
|
||||||
if spec.satisfies("+fortan"):
|
if spec.satisfies("+fortran"):
|
||||||
env.set("F77", spec["mpi"].mpif77)
|
env.set("F77", spec["mpi"].mpif77)
|
||||||
|
|
||||||
if spec.satisfies("+cuda"):
|
if spec.satisfies("+cuda"):
|
||||||
@ -398,8 +398,9 @@ def cache_test_sources(self):
|
|||||||
makefile = join_path(install_test_root(self), self.extra_install_tests, "Makefile")
|
makefile = join_path(install_test_root(self), self.extra_install_tests, "Makefile")
|
||||||
filter_file(r"^HYPRE_DIR\s* =.*", f"HYPRE_DIR = {self.prefix}", makefile)
|
filter_file(r"^HYPRE_DIR\s* =.*", f"HYPRE_DIR = {self.prefix}", makefile)
|
||||||
filter_file(r"^CC\s*=.*", f"CC = {os.environ['CC']}", makefile)
|
filter_file(r"^CC\s*=.*", f"CC = {os.environ['CC']}", makefile)
|
||||||
filter_file(r"^F77\s*=.*", f"F77 = {os.environ['F77']}", makefile)
|
|
||||||
filter_file(r"^CXX\s*=.*", f"CXX = {os.environ['CXX']}", makefile)
|
filter_file(r"^CXX\s*=.*", f"CXX = {os.environ['CXX']}", makefile)
|
||||||
|
if self.spec.satisfies("+fortran"):
|
||||||
|
filter_file(r"^F77\s*=.*", f"F77 = {os.environ['F77']}", makefile)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _cached_tests_work_dir(self):
|
def _cached_tests_work_dir(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user