Skip to content

Commit

Permalink
Added assembly files to freertos_port_files() (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindbergem authored Oct 21, 2024
1 parent 94c5249 commit e32d69a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions freertos-cargo-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,16 @@ impl Builder {
.into_iter()
.filter_map(|e| e.ok())
.filter_map(|entry| {
let f_name = entry.path().to_str().unwrap();

if f_name.ends_with(".c") {
return Some(entry.path().to_owned());
match entry
.path()
.extension()
.map(|s| s.to_string_lossy())
.as_ref()
.map(|s| s.as_ref())
{
Some("c" | "s" | "S") => Some(entry.path().to_owned()),
_ => None,
}
None
})
.collect();
files
Expand Down

0 comments on commit e32d69a

Please sign in to comment.