Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions barretenberg/cpp/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ function preset_cache_paths {
find $build_dir/bin $build_dir/lib \
-maxdepth 1 \( -name "$t" -o -name "$t.exe" -o -name "$t.node" -o -name "lib${t}.a" \) \
2>/dev/null
# Emscripten emits a .js loader and a .worker.mjs pthread worker as
# side-outputs of any .wasm executable target; cache them next to the
# .wasm so consumers like bb.js see a complete artifact set on cache hit.
if [[ "$t" == *.wasm ]]; then
local stem="${t%.wasm}"
find $build_dir/bin -maxdepth 1 \
\( -name "$stem.js" -o -name "$stem.worker.mjs" \) \
2>/dev/null
fi
done
fi
}
Expand Down
Loading