We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 946c741 + 9966112 commit 9839b14Copy full SHA for 9839b14
src/lib.rs
@@ -1675,6 +1675,21 @@ impl Tool {
1675
pub fn env(&self) -> &[(OsString, OsString)] {
1676
&self.env
1677
}
1678
+
1679
+ /// Whether the tool is GNU Compiler Collection-like.
1680
+ pub fn is_like_gnu(&self) -> bool {
1681
+ self.family == ToolFamily::Gnu
1682
+ }
1683
1684
+ /// Whether the tool is Clang-like.
1685
+ pub fn is_like_clang(&self) -> bool {
1686
+ self.family == ToolFamily::Clang
1687
1688
1689
+ /// Whether the tool is MSVC-like.
1690
+ pub fn is_like_msvc(&self) -> bool {
1691
+ self.family == ToolFamily::Msvc
1692
1693
1694
1695
fn run(cmd: &mut Command, program: &str) -> Result<(), Error> {
0 commit comments