Skip to content

Commit

Permalink
add .objects (rust-lang#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
theaddonn authored Jul 29, 2024
1 parent dcd8ed3 commit be29fd6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,18 @@ impl Build {
self
}

/// Add arbitrary object files to link in
pub fn objects<P>(&mut self, objs: P) -> &mut Build
where
P: IntoIterator,
P::Item: AsRef<Path>,
{
for obj in objs {
self.object(obj);
}
self
}

/// Add an arbitrary flag to the invocation of the compiler
///
/// # Example
Expand Down

0 comments on commit be29fd6

Please sign in to comment.