Merge pull request #334 from meta-rust/progress
cargo.bbclass: support cargo's progress indicator
This commit is contained in:
@@ -46,6 +46,7 @@ oe_cargo_build () {
|
||||
"${CARGO}" build ${CARGO_BUILD_FLAGS} "$@"
|
||||
}
|
||||
|
||||
do_compile[progress] = "outof:\s+(\d+)/(\d+)"
|
||||
cargo_do_compile () {
|
||||
oe_cargo_fix_env
|
||||
oe_cargo_build
|
||||
|
||||
@@ -97,6 +97,13 @@ cargo_common_do_configure () {
|
||||
target-dir = "${B}/target"
|
||||
EOF
|
||||
fi
|
||||
|
||||
cat <<- EOF >> ${CARGO_HOME}/config
|
||||
|
||||
[term]
|
||||
progress.when = 'always'
|
||||
progress.width = 80
|
||||
EOF
|
||||
}
|
||||
|
||||
oe_cargo_fix_env () {
|
||||
|
||||
Reference in New Issue
Block a user