Skip to content

Commit 9b13ed2

Browse files
committed
Project::update_output_selection
1 parent 4584120 commit 9b13ed2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

crates/compilers/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,15 @@ impl<T: ArtifactOutput, C: Compiler> Project<C, T> {
449449

450450
Ok(paths.remove(0))
451451
}
452+
453+
/// Invokes [CompilerSettings::update_output_selection] on the project's settings and all
454+
/// additional settings profiles.
455+
pub fn update_output_selection(&mut self, f: impl FnOnce(&mut OutputSelection) + Copy) {
456+
self.settings.update_output_selection(f);
457+
self.additional_settings.iter_mut().for_each(|(_, s)| {
458+
s.update_output_selection(f);
459+
});
460+
}
452461
}
453462

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

0 commit comments

Comments
 (0)