Allow recipe to set cargo flags

This commit is contained in:
Jeremy Soller 2016-10-31 13:13:12 -06:00
parent b6024fb704
commit 089750ab8e
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
export RUST_TARGET_PATH=`realpath targets`
export RUSTFLAGS="--cfg redox"
export CARGOFLAGS=
TARGET=x86_64-unknown-redox
set -e
@ -15,7 +16,7 @@ then
case "$2" in
build)
pushd build
xargo build --target "$TARGET"
xargo build --target "$TARGET" $CARGOFLAGS
popd
;;
clean)

2
recipes/sodium/recipe.sh Normal file
View File

@ -0,0 +1,2 @@
GIT=https://github.com/redox-os/sodium.git
CARGOFLAGS="--features orbital"