Skip to content

Commit

Permalink
feat:support auto search toolchain, issue: #272
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Aug 8, 2024
1 parent c12fe72 commit 69868c3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ func searchToolChain(cmd string) (*types.ToolChain, error) {
return searchGcc(cmd)
}

if strings.HasSuffix(cmd, "cc") || strings.HasSuffix(cmd, "c++") {
return searchGcc(cmd)
}

return nil, nil
}

Expand Down

0 comments on commit 69868c3

Please sign in to comment.