Skip to content

Commit

Permalink
fix: cleanup _get_optlevel verbose param in pymake_base (#199)
Browse files Browse the repository at this point in the history
Co-authored-by: mjreno <mjreno@IGSAAA071L01144.gs.doi.net>
  • Loading branch information
mjreno and mjreno authored Nov 22, 2024
1 parent 2f58d33 commit feb8adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymake/pymake_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def _pymake_compile(
)

# set optimization levels
optlevel = _get_optlevel(target, fc, cc, debug, fflags, cflags, verbose=verbose)
optlevel = _get_optlevel(target, fc, cc, debug, fflags, cflags)

# get fortran and c compiler switches
tfflags = _get_fortran_flags(
Expand Down Expand Up @@ -1543,7 +1543,7 @@ def _create_makefile(
f.write(line)

# optimization level
optlevel = _get_optlevel(target, fc, cc, debug, fflags, cflags, verbose=verbose)
optlevel = _get_optlevel(target, fc, cc, debug, fflags, cflags)
line = "# set the optimization level (OPTLEVEL) if not defined\n"
line += f"OPTLEVEL ?= {optlevel.replace('/', '-')}\n\n"
f.write(line)
Expand Down

0 comments on commit feb8adf

Please sign in to comment.