foundry
Foundry OS: the operating system built on the Rustbelt kernel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/usr/bin/env bash
# Unpack the cached musl tarball, apply patches/*.patch in order, and
# install a static-only musl into a sysroot (headers in include/, libc.a and
# the crt*.o start files in lib/, plus a musl-gcc wrapper in bin/).
#
# Not used by the contract-v1 image yet (milestone M2). Since Rustbelt
# 0.19.0 loads static-PIE programs, the plan is plain
# out/sysroot/bin/musl-gcc -static-pie hello.c
# with none of the old rb-cc link tricks (see docs/porting.md).
#
# Usage: toolchain/musl/build.sh CACHE_DIR BUILD_DIR SYSROOT
HERE=
CACHE= BUILD= SYSROOT=
&&
src=/
for; do
[ || continue
;
done
|