cmdline: Add Gpu only when feature gpu is on

crosvm could not compile without this patch if feature `gpu` is not
turned on.

TEST=tools/presubmit
BUG=b:260607247

Change-Id: Idcaad60862d56d8e0ebb47b3bbec42da757e3162
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4060240
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Idan Raiter <idanr@google.com>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Changyuan Lyu 2022-11-28 11:39:26 -08:00 committed by crosvm LUCI
parent f50029e071
commit c3da0b936f

View file

@ -461,6 +461,7 @@ pub struct DeviceCommand {
/// Cross-platform Devices
pub enum CrossPlatformDevicesCommands {
Block(device::BlockOptions),
#[cfg(feature = "gpu")]
Gpu(device::GpuOptions),
#[cfg(unix)]
Net(device::NetOptions),