diff --git a/src/lib.rs b/src/lib.rs index 218b9e04..0c0a0450 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -501,6 +501,18 @@ impl Build { self } + /// Add arbitrary object files to link in + pub fn objects

(&mut self, objs: P) -> &mut Build + where + P: IntoIterator, + P::Item: AsRef, + { + for obj in objs { + self.object(obj); + } + self + } + /// Add an arbitrary flag to the invocation of the compiler /// /// # Example