Fix building of libstd

This commit is contained in:
Jeremy Soller 2016-10-31 12:49:59 -06:00
parent 0c6941af48
commit d2f5588d92
5 changed files with 48 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

45
cook.sh Executable file
View File

@ -0,0 +1,45 @@
export RUST_TARGET_PATH=`realpath targets`
export RUSTFLAGS="--cfg redox"
TARGET=x86_64-unknown-redox
set -e
if [ -n "$1" ]
then
if [ -d "recipes/$1" ]
then
pushd "recipes/$1"
source recipe.sh
case "$2" in
build)
pushd build
xargo build --target "$TARGET"
popd
;;
clean)
pushd build
xargo clean
popd
;;
fetch)
git clone --recursive "$GIT" build
;;
unfetch)
rm -rf build
;;
update)
pushd build
xargo update
popd
;;
*)
echo "$0 {package} {build|clean|fetch|update}"
;;
esac
popd
else
echo "$0: recipe '$1' not found"
fi
else
echo "$0 {package} {build|clean|fetch|update}"
fi

1
recipes/libstd/recipe.sh Normal file
View File

@ -0,0 +1 @@
GIT=https://github.com/redox-os/libstd.git

1
recipes/smith/recipe.sh Executable file
View File

@ -0,0 +1 @@
GIT=https://github.com/IGI-111/Smith.git