That would be big improvement but might not solve the issues entirely. In case when there is GCC in PATH and user prepends Clang directory GCC would be still choosen first.
Obviusly the best fix would be to look for cc
and c++
because they are literally the default compilers but I suppose it's not acceptable?