NOTE: This does not add detection for CC=cc where cc is a symlink to clang. This only covers CC=clang. Another commit will be pushed shortly to fully fix the issue.