summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/HostInfo.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-07 01:11:54 +0000
committerMike Stump <mrs@apple.com>2009-10-07 01:11:54 +0000
commitdb9fca7735974c6cd441a3c8a2d4da3e4ec12424 (patch)
tree99d2789d038717769c5e14d3bc889fd84b0648d7 /clang/lib/Driver/HostInfo.cpp
parentff971e8bf4aa7730ebbb242ddb08f5c4123c75a0 (diff)
downloadbcm5719-llvm-db9fca7735974c6cd441a3c8a2d4da3e4ec12424.tar.gz
bcm5719-llvm-db9fca7735974c6cd441a3c8a2d4da3e4ec12424.zip
Fixup pathnames.
llvm-svn: 83443
Diffstat (limited to 'clang/lib/Driver/HostInfo.cpp')
-rw-r--r--clang/lib/Driver/HostInfo.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/Driver/HostInfo.cpp b/clang/lib/Driver/HostInfo.cpp
index 08c4ef49001..22fe11d661a 100644
--- a/clang/lib/Driver/HostInfo.cpp
+++ b/clang/lib/Driver/HostInfo.cpp
@@ -42,7 +42,7 @@ class DarwinHostInfo : public HostInfo {
unsigned DarwinVersion[3];
/// GCC version to use on this host.
- unsigned GCCVersion[3];
+ unsigned GCCVersion[4];
/// Cache of tool chains we have created.
mutable llvm::DenseMap<unsigned, ToolChain*> ToolChains;
@@ -84,6 +84,12 @@ DarwinHostInfo::DarwinHostInfo(const Driver &D, const llvm::Triple& Triple)
GCCVersion[0] = 4;
GCCVersion[1] = 2;
GCCVersion[2] = 1;
+ // And we need to select the OS gcc was configured for, darwin10
+#ifdef OS_MAJOR
+ GCCVersion[3] = OS_MAJOR;
+#else
+ GCCVersion[3] = 10;
+#endif
}
DarwinHostInfo::~DarwinHostInfo() {
OpenPOWER on IntegriCloud