aboutsummaryrefslogtreecommitdiffstats
path: root/research/experiments/033-computing/record.py
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-10-04 14:25:45 +0100
committereunhhu <[email protected]>2026-10-04 14:25:45 +0100
commit540d4aef64eb5364a836615fbd44d321b029de3f (patch)
tree7474b5680763d4d63d49d55d9c401bd5bc34bf8b /research/experiments/033-computing/record.py
parent608221c21edb345e4eeeca85385d2e149c3baa30 (diff)
downloadpure-540d4aef64eb5364a836615fbd44d321b029de3f.tar.gz
pure-540d4aef64eb5364a836615fbd44d321b029de3f.zip
Say what computing in one event costs and finds (018 stage 2, research 118)
Diffstat (limited to 'research/experiments/033-computing/record.py')
-rwxr-xr-xresearch/experiments/033-computing/record.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/research/experiments/033-computing/record.py b/research/experiments/033-computing/record.py
index 7450fa6..3bb6a9e 100755
--- a/research/experiments/033-computing/record.py
+++ b/research/experiments/033-computing/record.py
@@ -4,7 +4,7 @@ computing: the examples routes.aup and numbers.aup against their models),
each recorded by 029's recorded-pure-run, so two machines' records compare
run by run (029's compare.py).
-record.py AUP_ROOT PURE_ROOT OUT.jsonl the checks' report on stdout"""
+record.py AUP_ROOT PURE_ROOT OUT.jsonl the checks' report on stdout (MAKE: the make to build with)"""
import importlib.util
import json
import os
@@ -14,8 +14,8 @@ import tempfile
from pathlib import Path
aup_root, pure_root, out = (Path(a).resolve() for a in sys.argv[1:4])
-subprocess.run(['make', '-s', '-C', str(pure_root), 'build/pure-run'], check=True)
-subprocess.run(['make', '-s', '-C', str(aup_root), 'build/aup'], check=True)
+subprocess.run([os.environ.get('MAKE', 'make'), '-s', '-C', str(pure_root), 'build/pure-run'], check=True)
+subprocess.run([os.environ.get('MAKE', 'make'), '-s', '-C', str(aup_root), 'build/aup'], check=True)
out.unlink(missing_ok=True)
os.environ['PURE_RUN'] = str(pure_root / 'build' / 'pure-run')
os.environ['PURE_RUN_LOG'] = str(out)