build: Only pull in iced-x86 for x86_64 builds

Fixes: #2024

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-12-07 17:07:28 +00:00
parent 6c0c47a530
commit 9594ecec0d

View File

@ -25,7 +25,7 @@ vmm-sys-util = { version = ">=0.5.0", features = ["with-serde"] }
git = "https://github.com/rust-vmm/linux-loader"
features = ["elf", "bzimage"]
[dependencies.iced-x86]
[target.'cfg(target_arch = "x86_64")'.dependencies.iced-x86]
version = "1.9.1"
default-features = false
features = ["std", "decoder", "op_code_info", "instr_info", "fast_fmt"]