Skip to content

Commit

Permalink
rt: build: avoid declaring linker script path variable if no features…
Browse files Browse the repository at this point in the history
… selected

Signed-off-by: Zhouqi Jiang <[email protected]>
  • Loading branch information
luojia65 committed Dec 12, 2024
1 parent 118b1a7 commit 429794f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bouffalo-rt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ use std::{env, path::PathBuf};

fn main() {
let out = PathBuf::from(env::var_os("OUT_DIR").unwrap());

Check warning on line 4 in bouffalo-rt/build.rs

View workflow job for this annotation

GitHub Actions / Test (bouffalo-rt)

unused variable: `out`
#[cfg(any(
feature = "bl616",
feature = "bl808-mcu",
feature = "bl808-dsp",
feature = "bl702"
))]
let ld = &out.join("bouffalo-rt.ld");

#[cfg(feature = "bl616")]
Expand Down

0 comments on commit 429794f

Please sign in to comment.