Files
Brennen Herbruck 916b91e8d0 Vendor solidcore at solidcore/ with its history (solidcore c0d3cc0124)
solidcore's main at c0d3cc0124, rewritten to one commit per same-author run per
PR (2,800 commits, author credit kept; tree identical). Full original history:
tangency-labs/solidcore archive/full-history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

git-subtree-dir: solidcore
git-subtree-mainline: 44525da669
git-subtree-split: c440e5f892
2026-11-08 15:18:40 -05:00

16 lines
609 B
Bash
Executable File
Vendored

#!/bin/sh
# Runs one unit's Rust side on wasm32-wasip1 for scripts/wasm-digest.sh.
#
# The caller passes the root, resolved upstream, output directory and unit id as
# arguments. This is a static file rather than a generated runner, and the id is
# never interpolated into shell code, so shell metacharacters stay data.
set -u
root=$1
up=$2
out=$3
unit=$4
wasmtime run --allow-precompiled --dir "$root::$root" --dir "$up::$root/upstream" \
--dir "$out::$out" "$out/goldens.cwasm" \
--unit "$unit" --digest-dir "$out/wasm" >"$out/log/$unit.txt" 2>&1 \
|| echo "wasm exit $? $unit" >>"$out/log/$unit.txt"