Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: restore double precision executables #24

Merged
merged 13 commits into from
Feb 15, 2024
18 changes: 15 additions & 3 deletions scripts/build_executables.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,28 @@ def run_cmd(args) -> bool:
]):
raise RuntimeError(f"could not make code.json")

# build binaries
# build single precision binaries
build_args = [
"make-program", ":",
"--appdir", path,
"--double",
"-fc", "ifort",
"-cc", cc,
"--zip", f"{path}.zip",
]
if keep:
build_args.append("--keep")
if not run_cmd(build_args):
raise RuntimeError("could not build binaries")
raise RuntimeError("could not build single precision binaries")
wpbonelli marked this conversation as resolved.
Show resolved Hide resolved

# build double precision binaries
build_args = [
"make-program", "mf2005,mflgr,mfnwt,mfusg",
"--appdir", path,
"--double",
"--keep",
"-fc", "ifort",
"-cc", cc,
"--zip", f"{path}.zip",
]
if not run_cmd(build_args):
raise RuntimeError("could not build single precision binaries")
Loading