Skip to content

Conversation

@lightmare
Copy link
Collaborator

There are two issues with basename $CC.

If CC is two words (e.g. ccache gcc), basename returns the first (the second word is treated as a suffix to remove, most often it doesn't match so you don't notice).
If CC is more than two words, basename complains there's too many arguments.

This PR first strips ccache if it's the first word, and then calls basename with only the first word of the rest.

@springmeyer
Copy link
Contributor

Thanks @lightmare!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants