[cfe-commits] r92164 - /cfe/trunk/tools/driver/driver.cpp
Daniel Dunbar
daniel at zuster.org
Fri Dec 25 12:21:24 PST 2009
Author: ddunbar
Date: Fri Dec 25 14:21:23 2009
New Revision: 92164
URL: http://llvm.org/viewvc/llvm-project?rev=92164&view=rev
Log:
Driver: Use "g++" as generic gcc name when running in C++ mode, for platforms
that lack real tool definitions.
Modified:
cfe/trunk/tools/driver/driver.cpp
Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=92164&r1=92163&r2=92164&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Fri Dec 25 14:21:23 2009
@@ -225,8 +225,10 @@
// 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;
More information about the cfe-commits
mailing list