tests/docker: add ENABLE_RUST environment
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20250924120426.2158655-18-marcandre.lureau@redhat.com>
This commit is contained in:
parent
8234e77f06
commit
2086d47992
1 changed files with 9 additions and 0 deletions
|
|
@ -21,6 +21,14 @@ else
|
|||
DEF_TARGET_LIST=${DEF_TARGET_LIST:-"x86_64-softmmu,aarch64-softmmu"}
|
||||
fi
|
||||
|
||||
enable_rust=""
|
||||
if [ "$ENABLE_RUST" = "1" ]; then
|
||||
enable_rust="--enable-rust"
|
||||
if [ -n "$RUST_TARGET" ]; then
|
||||
enable_rust="$enable_rust --rust-target-triple=$RUST_TARGET"
|
||||
fi
|
||||
fi
|
||||
|
||||
requires_binary()
|
||||
{
|
||||
found=0
|
||||
|
|
@ -46,6 +54,7 @@ configure_qemu()
|
|||
${TARGET_LIST:+--target-list=${TARGET_LIST}} \
|
||||
--prefix=$INSTALL_DIR \
|
||||
$QEMU_CONFIGURE_OPTS $EXTRA_CONFIGURE_OPTS \
|
||||
$enable_rust \
|
||||
$@"
|
||||
echo "Configure options:"
|
||||
echo $config_opts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue