aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / scripts / repro-build.sh
| 1 | #!/usr/bin/env bash |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright 2026 Drake Stapleton (AIEN / aien-dev) |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | # Release build with machine-local paths removed from the binaries (CAND-0 reproducibility gap G13). |
| 18 | # |
| 19 | # scripts/repro-build.sh [cargo build arguments] e.g. scripts/repro-build.sh -p aien-cli |
| 20 | # |
| 21 | # rustc writes the source path of every dependency into panic messages. Dependencies come from |
| 22 | # $CARGO_HOME/registry/src/..., so without this script the aien-cli digest depends on the home |
| 23 | # directory and on CARGO_HOME of whoever built it. The script maps those prefixes to fixed names |
| 24 | # (--remap-path-prefix) and builds with --release --locked. It does not set AIEN_OMEGA_DIR, |
| 25 | # AIEN_PHYSICS_DIR or CARGO_TARGET_DIR: pass them as for any other build. |
| 26 | set -euo pipefail |
| 27 | root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P) |
| 28 | cargo_home=${CARGO_HOME:-$HOME/.cargo} |
| 29 | remap="--remap-path-prefix=$cargo_home=/cargo --remap-path-prefix=$root=/aien" |
| 30 | export RUSTFLAGS="${RUSTFLAGS:+$RUSTFLAGS }$remap" |
| 31 | exec cargo build --release --locked "$@" |