Skip to content

Commit 559609a

Browse files
Adjusted zig cc judgment and avoided zigbuild errors(#1360) (#1361)
* Adjusted zig cc judgment and avoided zigbuild errors(#1360) Adjusted is_zig_cc judgment and adjusted how supports_path_delimiter is handled. * Update src/lib.rs Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * typo fix and format check cargo fmt --check * Revert "Update src/lib.rs" This reverts commit a69d8bb. --------- Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
1 parent 9b91744 commit 559609a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tool.rs

+6
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ impl Tool {
103103
)
104104
.map(|o| String::from_utf8_lossy(&o).contains("ziglang"))
105105
.unwrap_or_default()
106+
|| {
107+
match path.file_name().map(OsStr::to_string_lossy) {
108+
Some(fname) => fname.contains("zig"),
109+
_ => false,
110+
}
111+
}
106112
}
107113

108114
fn guess_family_from_stdout(

0 commit comments

Comments
 (0)