From 5343e09e7b8dbd5dd8ac0d90a3ad52037490dd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 25 Feb 2022 12:40:44 +0100 Subject: [PATCH] scripts: dev_cli: Add `--features` option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let's officially have a way to pass the features used to build cloud-hypervisor to the dev_cli.sh script. This doesn't invalidate the previous commit, as we still don't what the features_build variable to be quoted, otherwise we face the following issue: ``` error: Found argument '--features tdx' which wasn't expected, or isn't valid in this context Did you mean --features? USAGE: cargo build --all --features ... ``` Signed-off-by: Fabiano FidĂȘncio --- scripts/dev_cli.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/dev_cli.sh b/scripts/dev_cli.sh index 275298088..d051716c9 100755 --- a/scripts/dev_cli.sh +++ b/scripts/dev_cli.sh @@ -241,6 +241,10 @@ cmd_build() { shift hypervisor="$1" ;; + "--features") + shift + features_build="--features $1" + ;; "--") { shift break