mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 22:04:19 +08:00
Allow recipe to set cargo flags
This commit is contained in:
parent
b6024fb704
commit
089750ab8e
3
cook.sh
3
cook.sh
@ -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
2
recipes/sodium/recipe.sh
Normal file
@ -0,0 +1,2 @@
|
||||
GIT=https://github.com/redox-os/sodium.git
|
||||
CARGOFLAGS="--features orbital"
|
||||
Loading…
Reference in New Issue
Block a user