that lack real tool definitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92164
91177308-0d34-0410-b5e6-
96231b3b80d8
// We use *argv instead of argv[0] to work around a bogus g++ warning.
std::string ProgName(llvm::sys::Path(*argv).getBasename());
if (llvm::StringRef(ProgName).endswith("++") ||
- llvm::StringRef(ProgName).rsplit('-').first.endswith("++"))
+ llvm::StringRef(ProgName).rsplit('-').first.endswith("++")) {
TheDriver.CCCIsCXX = true;
+ TheDriver.CCCGenericGCCName = "g++";
+ }
llvm::OwningPtr<Compilation> C;