Index: tools/clang/tools/driver/driver.cpp =================================================================== --- tools/clang/tools/driver/driver.cpp +++ tools/clang/tools/driver/driver.cpp @@ -213,11 +213,17 @@ {"clang", nullptr}, {"clang++", "--driver-mode=g++"}, {"clang-c++", "--driver-mode=g++"}, +#if defined(__FreeBSD__) + {"clang-CC", "--driver-mode=g++" }, +#endif {"clang-cc", nullptr}, {"clang-cpp", "--driver-mode=cpp"}, {"clang-g++", "--driver-mode=g++"}, {"clang-gcc", nullptr}, {"clang-cl", "--driver-mode=cl"}, +#if defined(__FreeBSD__) + {"CC", "--driver-mode=g++"}, +#endif {"cc", nullptr}, {"cpp", "--driver-mode=cpp"}, {"cl", "--driver-mode=cl"},