Skip to content
Snippets Groups Projects
Commit f09958fd authored by Jacob Lorentzon's avatar Jacob Lorentzon :speech_balloon:
Browse files

Allow recipes that are Cargo workspaces to select individual packages,

by adding the CARGO_PACKAGE variable, which passes --package=PKG to
cargo rustc.
parent e1a5a2cc
Branches
Tags
No related merge requests found
...@@ -321,10 +321,16 @@ function op { ...@@ -321,10 +321,16 @@ function op {
release_flag= release_flag=
fi fi
if [ -n "$CARGO_PACKAGE" ]; then
package_flag="--package=$CARGO_PACKAGE"
else
package_flag=
fi
if [ "$skip" -eq "0" ] if [ "$skip" -eq "0" ]
then then
cp -p "$ROOT/Xargo.toml" "Xargo.toml" cp -p "$ROOT/Xargo.toml" "Xargo.toml"
"${CARGO[@]}" "$CARGOBUILD" --target "$TARGET" $release_flag $CARGOFLAGS "${CARGO[@]}" "$CARGOBUILD" --target "$TARGET" $release_flag $package_flag $CARGOFLAGS
fi fi
popd > /dev/null popd > /dev/null
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment