cargo.bbclass: support cargo's progress indicator
Recent versions of cargo support always showing the progress indicator. By default the progress indicator is hidden if the output is not a tty. For bitbake builds, the output is redirected to a file and not a tty. However, if we tell cargo to always show the progress indicator, bitbake can parse it and will show the user how the rust build is progressing.
This commit is contained in:
@@ -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