Skip to content

Commit

Permalink
* cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Jun 10, 2024
1 parent a0e8cbd commit b5083bf
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
9 changes: 2 additions & 7 deletions autotest/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ def test_build(function_tmpdir, target: str) -> None:
pm.target = target
pm.inplace = True
fc = os.environ.get("FC", "gfortran")
# if system() == "Darwin" and fc == "gfortran":
# pm.syslibs = "-Wl,-ld_classic"
assert (
pymake.build_apps(
target,
Expand All @@ -88,9 +86,9 @@ def test_build(function_tmpdir, target: str) -> None:
@pytest.mark.parametrize("target", targets_meson)
def test_meson_build(function_tmpdir, target: str) -> None:
kwargs = {}
cc = os.environ.get("CC", "gcc")
fc = os.environ.get("FC", "gfortran")
if system() == "Darwin" and fc == "gfortran":
kwargs["LDFLAGS"] = "-Wl,-ld_classic"
pymake.linker_update_environment(cc=cc, fc=fc)
with set_dir(function_tmpdir), set_env(**kwargs):
assert (
pymake.build_apps(
Expand All @@ -115,9 +113,6 @@ def test_makefile_build(function_tmpdir, target: str) -> None:
pm.inplace = True
pm.dryrun = True
pm.makeclean = False
fc = os.environ.get("FC", "gfortran")
# if system() == "Darwin" and fc == "gfortran":
# pm.syslibs = "-Wl,-ld_classic"

with set_dir(function_tmpdir):
pm.download_target(target)
Expand Down
2 changes: 0 additions & 2 deletions autotest/test_cli_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ def test_mfpymake(function_tmpdir, meson: bool) -> None:
fc = os.environ.get("FC")
cmd.append(fc)

# if system() == "Darwin" and fc == "gfortran":
# set_env(**{"LDFLAGS": "-Wl,-ld_classic"})
linker_update_environment(fc=fc)

if meson:
Expand Down
2 changes: 0 additions & 2 deletions autotest/test_gridgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def pm(module_tmpdir, target) -> pymake.Pymake:
pm.appdir = str(module_tmpdir)
pm.cc = environ.get("CXX", "g++")
pm.fc = None
# if system() == "Darwin" and pm.cc == "g++":
# pm.syslibs = "-Wl,-ld_classic"
pm.inplace = True
pm.makeclean = True
yield pm
Expand Down
2 changes: 0 additions & 2 deletions autotest/test_mf6_existing_meson.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ def pm(workspace, targets) -> pymake.Pymake:
pm.target = str(targets[0])
pm.appdir = str(workspace / "bin")
pm.fc = os.environ.get("FC", "gfortran")
# if system() == "Darwin" and pm.fc == "gfortran":
# pm.syslibs = "-Wl,-ld_classic"
pm.meson = True
pm.makeclean = True
pm.mesondir = str(workspace)
Expand Down

0 comments on commit b5083bf

Please sign in to comment.