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 / benchmarks / data / headstart / patched-20261015-4c83e38 / toolchain / 02-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 | # Stage 2: build the patched stage-1 rustc and patched cargo, capped at 12 jobs, niced. |
| 18 | # Mirrors upstream scripts/setup.sh build lines; only -j and nice are added. |
| 19 | set -euo pipefail |
| 20 | H=~/workspace/headstart-exp/headstart |
| 21 | J=${J:-12} |
| 22 | cd "$H/rustc" |
| 23 | t0=$(date +%s) |
| 24 | nice -n 10 ./x build --stage 1 compiler library -j "$J" |
| 25 | t1=$(date +%s) |
| 26 | echo "RUSTC_BUILD_S $((t1 - t0))" |
| 27 | cd "$H/cargo" |
| 28 | nice -n 10 cargo +1.98.0 build --release -j "$J" |
| 29 | t2=$(date +%s) |
| 30 | echo "CARGO_BUILD_S $((t2 - t1))" |
| 31 | ls -la "$H/rustc/build/host/stage1/bin/rustc" "$H/cargo/target/release/cargo" |
| 32 | echo BUILD_OK |