Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,11 @@ impl Build {
self
}

/// Get an iterator of the files which will be compiled
pub fn iter_files(&self) -> impl Iterator<Item = &Path> {
self.files.iter().map(|path| path.as_ref())
}

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