Skip to content

Commit 7520f2c

Browse files
Freax13phil-opp
andcommitted
build uefi & bios second stage when common changes
Co-Authored-By: Philipp Oppermann <[email protected]>
1 parent c0d4486 commit 7520f2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ fn build_uefi_bootloader(out_dir: &Path) -> PathBuf {
5252
// local build
5353
cmd.arg("--path").arg("uefi");
5454
println!("cargo:rerun-if-changed=uefi");
55+
println!("cargo:rerun-if-changed=common");
5556
} else {
5657
cmd.arg("--version").arg(BOOTLOADER_X86_64_UEFI_VERSION);
5758
}
@@ -132,6 +133,10 @@ fn build_bios_stage_2(out_dir: &Path) -> PathBuf {
132133
// local build
133134
cmd.arg("--path").arg(&local_path);
134135
println!("cargo:rerun-if-changed={}", local_path.display());
136+
println!(
137+
"cargo:rerun-if-changed={}",
138+
local_path.with_file_name("common").display()
139+
);
135140
} else {
136141
cmd.arg("--version")
137142
.arg(BOOTLOADER_X86_64_BIOS_STAGE_2_VERSION);

0 commit comments

Comments
 (0)