We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc6c1bd commit 5ebcaa1Copy full SHA for 5ebcaa1
1 file changed
build.rs
@@ -242,7 +242,15 @@ mod binary {
242
243
if manifest
244
.get("dependencies")
245
- .and_then(|d| d.get("bootloader"))
+ .and_then(|d| {
246
+ d.get("bootloader").or_else(|| {
247
+ manifest
248
+ .get("target")
249
+ .and_then(|table| table.get(r#"cfg(target_arch = "x86_64")"#))
250
+ .and_then(|table| table.get("dependencies"))
251
+ .and_then(|table| table.get("bootloader"))
252
+ })
253
254
.is_some()
255
{
256
// it seems to be the correct Cargo.toml
0 commit comments