refactor add_gcc_ld_path into its final form

This commit is contained in:
Rémy Rakic 2023-06-21 15:49:10 +00:00
parent 0fb80715bb
commit 1da271b6d0
2 changed files with 67 additions and 50 deletions

View file

@ -307,6 +307,11 @@ impl LinkSelfContained {
on.set_all_explicitly(true);
on
}
/// Returns whether the self-contained linker component is enabled.
pub fn linker(&self) -> bool {
self.components.contains(LinkSelfContainedComponents::LINKER)
}
}
/// Used with `-Z assert-incr-state`.