The JIT that runs makepad apps from source: lexer, front end, type checker, lazy borrow checker (Gandalf; `--check-first` opts in), codegen, session and warm/cold caches keyed by compiler stamp, provided crates bound late, startup images, live patching. User-facing name is `makepad run` (binary `makepad`, MAKEPAD_RUN_* env, ~/.makepad-run); libs/relax stays the internal library name. `makepad check` reports rustc-style diagnostics with rustc error codes and checks a whole workspace (`--workspace`). Runs on macOS, Linux, Windows and Android. makepad-remote: one tool schema for apps and the WM (app/1): grabs, captures, traces, frame profiles and tweaks. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
16 lines
967 B
Bash
Executable file
16 lines
967 B
Bash
Executable file
#!/bin/sh
|
|
set -eu
|
|
HOST=${1:?usage: run.sh mac|165}
|
|
BENCH=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
ROOT=$(CDPATH= cd -- "$BENCH/../../../../.." && pwd)
|
|
case "$HOST" in
|
|
mac) TARGET="$ROOT/target/bench"; RELAX="$ROOT/target/release/makepad" ;;
|
|
165) TARGET="$HOME/fastrust-std/bench/target"; RELAX="$HOME/fastrust-std/target/release/makepad" ;;
|
|
*) echo 'usage: run.sh mac|165' >&2; exit 2 ;;
|
|
esac
|
|
mkdir -p "$TARGET" "$BENCH/logs-$HOST"
|
|
export MAKEPAD_RUN_STD="$ROOT/libs/relax/compiler/std"
|
|
# The shims need their cfgs (check: relax_check, check_os: relax_shim).
|
|
nice -n 10 rustc --edition 2021 -C opt-level=3 "$BENCH/real/main.rs" -o "$TARGET/std-bench-real" >"$BENCH/logs-$HOST/build-A.log" 2>&1
|
|
RUSTFLAGS="${RUSTFLAGS:-} --cfg relax_check --cfg relax_shim" nice -n 10 cargo build --offline --release -j 4 --manifest-path "$BENCH/shim/Cargo.toml" --target-dir "$TARGET" >"$BENCH/logs-$HOST/build-B.log" 2>&1
|
|
python3 "$BENCH/runner.py" "$HOST" "$TARGET" "$RELAX"
|