mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 14:54:20 +08:00
Allow recipes that are Cargo workspaces to select individual packages,
by adding the CARGO_PACKAGE variable, which passes --package=PKG to cargo rustc.
This commit is contained in:
parent
e1a5a2cc22
commit
f09958fdcf
8
cook.sh
8
cook.sh
@ -321,10 +321,16 @@ function op {
|
||||
release_flag=
|
||||
fi
|
||||
|
||||
if [ -n "$CARGO_PACKAGE" ]; then
|
||||
package_flag="--package=$CARGO_PACKAGE"
|
||||
else
|
||||
package_flag=
|
||||
fi
|
||||
|
||||
if [ "$skip" -eq "0" ]
|
||||
then
|
||||
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
|
||||
"${CARGO[@]}" "$CARGOBUILD" --target "$TARGET" $release_flag $CARGOFLAGS
|
||||
"${CARGO[@]}" "$CARGOBUILD" --target "$TARGET" $release_flag $package_flag $CARGOFLAGS
|
||||
fi
|
||||
popd > /dev/null
|
||||
;;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user