Skip to content

Commit efbf5b2

Browse files
committed
Pass --bin argument when building bootloader
This allows the bootloader to use the `required-features` configuration. Without the `--bin` argument cargo just omits all binaries with unsatisfied required features, so that an unrelated 'no bootloader executable found' error would occur.
1 parent 3d967dc commit efbf5b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ impl Builder {
225225
cmd.arg("xbuild");
226226
cmd.arg("--manifest-path");
227227
cmd.arg(&bootloader_pkg.manifest_path);
228+
cmd.arg("--bin").arg(&bootloader_name);
228229
cmd.arg("--target-dir").arg(&target_dir);
229230
cmd.arg("--features")
230231
.arg(bootloader_features.as_slice().join(" "));

0 commit comments

Comments
 (0)