Skip to content

Commit c0ac465

Browse files
authored
fix(rt): fix linker script not found error (#23)
1 parent d4407ee commit c0ac465

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bouffalo-rt/build.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ fn main() {
1717
#[cfg(feature = "bl702")]
1818
std::fs::write(&ld, LINKER_SCRIPT_BL702).unwrap();
1919

20-
#[cfg(target_os = "none")]
21-
{
22-
println!("cargo:rustc-link-arg=-T{}", ld.display());
23-
println!("cargo:rustc-link-search={}", out.display());
24-
}
25-
#[cfg(not(target_os = "none"))]
20+
println!("cargo:rustc-link-search={}", out.display());
2621
let _ = (ld, out);
2722
}
2823

0 commit comments

Comments
 (0)