tawasuyu

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1569Shell 203Rust 109Markdown 993728 Definitions

⎇ 7c794568a963b18b68d747959e6bbd07cf2ebff7 scripts/rust-frontier/run-runrustc.sh Shell · 24 lines · 773 B History raw

takana: espejo de GitHub renombrado, y las dos colas que quedaban f9ed89cd1 · Sergio ·

1#!/bin/sh
2# Run a run_rustc make target inside the Alpine devfs sandbox (musl, 256-TLS loader, gcc).
3# Usage: run-runrustc.sh <make-target> [extra make args...]
4set -eu
5ROOT=/mnt/vvv/takana
6DEVFS=$ROOT/.dev-fs/alpine
7MRUSTC=$ROOT/.scratch/mrustc
8TARGET=${1:?make target required}
9shift || true
10
11exec bwrap \
12  --bind "$DEVFS" / \
13  --bind "$MRUSTC" /mrustc \
14  --dev /dev --proc /proc \
15  --tmpfs /tmp --tmpfs /run \
16  --setenv PATH /usr/bin:/bin:/usr/sbin:/sbin \
17  --setenv HOME /root \
18  --setenv TMPDIR /tmp \
19  --setenv MRUSTC_TARGET_VER 1.90 \
20  --setenv CC gcc --setenv CXX g++ \
21  --chdir /mrustc/run_rustc \
22  make RUSTC_VERSION=1.90.0 OUTDIR_SUF=-1.90.0-x86_64-unknown-linux-musl \
23       RUSTC_TARGET=x86_64-unknown-linux-musl PARLEVEL=8 \
24       "$TARGET" "$@"