Skip to content

Commit

Permalink
* update
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Jun 10, 2024
1 parent 628cba0 commit 61971f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions autotest/test_cli_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

import pytest
from flaky import flaky
from modflow_devtools.misc import set_dir
from modflow_devtools.misc import set_dir, set_env
from platform import system

RERUNS = 3

Expand Down Expand Up @@ -106,10 +107,14 @@ def test_mfpymake(function_tmpdir, meson: bool) -> None:
"--verbose",
"-fc",
]
fc = "gfortran"
if os.environ.get("FC") is None:
cmd.append("gfortran")
cmd.append(fc)
else:
cmd.append(os.environ.get("FC"))
fc = os.environ.get("FC")
cmd.append(fc)
if system() == "Darwin" and fc == "gfortran":
set_env(**{"LDFLAGS": "-Wl,-ld_classic"})
if meson:
cmd.append("--meson")
run_cli_cmd(cmd)
Expand Down
2 changes: 1 addition & 1 deletion autotest/test_gridgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def pm(module_tmpdir, target) -> pymake.Pymake:
pm.target = str(target)
pm.appdir = str(module_tmpdir)
pm.cc = environ.get("CXX", "g++")
pm.fc = environ.get("FC", "gfortran")
pm.fc = None
if system() == "Darwin" and pm.cc == "g++":
pm.syslibs = "-Wl,-ld_classic"
pm.inplace = True
Expand Down

0 comments on commit 61971f5

Please sign in to comment.