tweak rust

This commit is contained in:
Cody P Schafer
2014-11-26 11:26:53 -05:00
parent d91fa8700a
commit 0035ec3172
6 changed files with 110 additions and 9 deletions
+10 -2
View File
@@ -2,9 +2,17 @@ inherit rust
CARGO = "cargo"
# FIXME: this is a workaround for a misbehavior in cargo when used with quilt.
# See https://github.com/rust-lang/cargo/issues/978
PATCHTOOL = "patch"
# Cargo only supports in-tree builds at the moment
B = "${S}"
# In case something fails in the build process, give a bit more feedback on
# where the issue occured
export RUST_BACKTRACE = "1"
EXTRA_OECARGO_PATHS ??= ""
oe_cargo_config () {
@@ -18,8 +26,8 @@ oe_cargo_config () {
echo "paths = [" >.cargo/config
for p in ${EXTRA_OECARGO_PATHS}; do
printf "\"%s\" " "$p"
done | sed -e 's/[ \n]+/,/g' -e 's/,$//' >>.cargo/config
printf "\"%s\"\n" "$p"
done | sed -e 's/$/,/' >>.cargo/config
echo "]" >>.cargo/config
}