]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add clang-CC and CC to list of hints allowing clang to identify its operating
authorsmh <smh@FreeBSD.org>
Fri, 25 Oct 2013 09:09:00 +0000 (09:09 +0000)
committersmh <smh@FreeBSD.org>
Fri, 25 Oct 2013 09:09:00 +0000 (09:09 +0000)
commitea73eff314bfd095c57b0f2bc57822b9ce402962
tree26cb98147c261126e31d55c0ef76a65a6970108d
parentf8a6df730dc2acbd958f895d0622ddb0fc3af878
Add clang-CC and CC to list of hints allowing clang to identify its operating
mode as c++ instead of defaulting to c for the binary names CC and clang-CC.

This fixes builds that use cmake, which automatically sets CXX to
/usr/bin/CC by default.

PR: bin/182442
Reviewed by: dwhite, wca
MFC after: 2 days
contrib/llvm/tools/clang/tools/driver/driver.cpp