Skip to content

Commit

Permalink
tool: Add is_like_clang_cl() getter (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 authored Jan 10, 2025
1 parent 5e17879 commit 29a92bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ impl Tool {
matches!(self.family, ToolFamily::Msvc { .. })
}

/// Whether the tool is `clang-cl`-based MSVC-like.
pub fn is_like_clang_cl(&self) -> bool {
matches!(self.family, ToolFamily::Msvc { clang_cl: true })
}

/// Supports using `--` delimiter to separate arguments and path to source files.
pub(crate) fn supports_path_delimiter(&self) -> bool {
matches!(
Expand Down

0 comments on commit 29a92bd

Please sign in to comment.