Skip to content

The only tool you need to know what is happening and how to fix it.

540 B
Raw Blame
#!/bin/bash
set -e

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(dirname "$SCRIPT_DIR")"

if ! command -v cargo &> /dev/null; then
    echo "cargo not found - install Rust (https://rustup.rs) to build the oxc shim"
    exit 1
fi

cd "$ROOT_DIR/backend/app/symbolicator/sourcemap/scopes/oxc-shim"
cargo build --release

echo "Built liboxc_shim.a"
echo "Build the backend with the oxc parser enabled:"
echo "  cd backend && go build -tags oxc ./cmd/traceway"
echo "Select it at runtime with SYMBOLICATOR_PARSER=oxc"