Skip to content

Commit

Permalink
chore: add additional include dir
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevleon committed Jan 13, 2025
1 parent bfa7f52 commit d7fd124
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn generate_bindings(rss_path: &Path) -> Result<()> {

// Get GCC sysroot
let sysroot = get_gcc_sysroot()?;

// Base bindgen configuration
let mut builder = Builder::default()
.use_core()
Expand Down Expand Up @@ -58,7 +58,8 @@ pub fn generate_bindings(rss_path: &Path) -> Result<()> {
// Add sysroot includes
builder = builder
.clang_arg(format!("--sysroot={}", sysroot))
.clang_arg(format!("-I{}/include", sysroot));
.clang_arg(format!("-I{}/include", sysroot))
.clang_arg(format!("-I{}/riscv32-esp-elf/include", sysroot));

// Add GCC includes
if let Ok(output) = Command::new("riscv32-esp-elf-gcc")
Expand Down

0 comments on commit d7fd124

Please sign in to comment.