Skip to content

Commit be29fd6

Browse files
authored
add .objects (#1166)
1 parent dcd8ed3 commit be29fd6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib.rs

+12
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,18 @@ impl Build {
501501
self
502502
}
503503

504+
/// Add arbitrary object files to link in
505+
pub fn objects<P>(&mut self, objs: P) -> &mut Build
506+
where
507+
P: IntoIterator,
508+
P::Item: AsRef<Path>,
509+
{
510+
for obj in objs {
511+
self.object(obj);
512+
}
513+
self
514+
}
515+
504516
/// Add an arbitrary flag to the invocation of the compiler
505517
///
506518
/// # Example

0 commit comments

Comments
 (0)