Skip to content

Commit

Permalink
Config::files method
Browse files Browse the repository at this point in the history
  • Loading branch information
opilar committed Jul 15, 2017
1 parent b3e7737 commit 510e040
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,16 @@ impl Config {
self
}

/// Add files which will be compiled
pub fn files<P>(&mut self, p: P) -> &mut Config
where P: IntoIterator,
P::Item: AsRef<Path> {
for file in p.into_iter() {
self.file(file);
}
self
}

/// Set C++ support.
///
/// The other `cpp_*` options will only become active if this is set to
Expand Down

0 comments on commit 510e040

Please sign in to comment.