From c3da0b936fae3a5f6319bec984e6f6fd644a7e5d Mon Sep 17 00:00:00 2001 From: Changyuan Lyu Date: Mon, 28 Nov 2022 11:39:26 -0800 Subject: [PATCH] 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 Reviewed-by: Idan Raiter Reviewed-by: Daniel Verkamp --- src/crosvm/cmdline.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crosvm/cmdline.rs b/src/crosvm/cmdline.rs index 970747d137..a9aa1b6843 100644 --- a/src/crosvm/cmdline.rs +++ b/src/crosvm/cmdline.rs @@ -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),