Skip to content

Commit

Permalink
Project::update_output_selection
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Aug 28, 2024
1 parent 4584120 commit 9b13ed2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/compilers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,15 @@ impl<T: ArtifactOutput, C: Compiler> Project<C, T> {

Ok(paths.remove(0))
}

/// Invokes [CompilerSettings::update_output_selection] on the project's settings and all
/// additional settings profiles.
pub fn update_output_selection(&mut self, f: impl FnOnce(&mut OutputSelection) + Copy) {
self.settings.update_output_selection(f);
self.additional_settings.iter_mut().for_each(|(_, s)| {
s.update_output_selection(f);
});
}
}

pub struct ProjectBuilder<C: Compiler = MultiCompiler, T: ArtifactOutput = ConfigurableArtifacts> {
Expand Down

0 comments on commit 9b13ed2

Please sign in to comment.