Skip to content

Commit

Permalink
Adjusted zig cc judgment and avoided zigbuild errors(#1360) (#1361)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
phoepsilonix and NobodyXu authored Jan 12, 2025
1 parent 9b91744 commit 559609a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ impl Tool {
)
.map(|o| String::from_utf8_lossy(&o).contains("ziglang"))
.unwrap_or_default()
|| {
match path.file_name().map(OsStr::to_string_lossy) {
Some(fname) => fname.contains("zig"),
_ => false,
}
}
}

fn guess_family_from_stdout(
Expand Down

0 comments on commit 559609a

Please sign in to comment.