[llvm-branch-commits] [cfe-branch] r83444 - in /cfe/branches/Apple/Dib/lib/Driver: HostInfo.cpp Makefile ToolChains.cpp ToolChains.h
Mike Stump
mrs at apple.com
Tue Oct 6 18:26:29 PDT 2009
Author: mrs
Date: Tue Oct 6 20:26:29 2009
New Revision: 83444
URL: http://llvm.org/viewvc/llvm-project?rev=83444&view=rev
Log:
Fixup paths.
Modified:
cfe/branches/Apple/Dib/lib/Driver/HostInfo.cpp
cfe/branches/Apple/Dib/lib/Driver/Makefile
cfe/branches/Apple/Dib/lib/Driver/ToolChains.cpp
cfe/branches/Apple/Dib/lib/Driver/ToolChains.h
Modified: cfe/branches/Apple/Dib/lib/Driver/HostInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/Driver/HostInfo.cpp?rev=83444&r1=83443&r2=83444&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/lib/Driver/HostInfo.cpp (original)
+++ cfe/branches/Apple/Dib/lib/Driver/HostInfo.cpp Tue Oct 6 20:26:29 2009
@@ -45,7 +45,7 @@
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::StringMap<ToolChain *> ToolChains;
@@ -94,6 +94,12 @@
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() {
Modified: cfe/branches/Apple/Dib/lib/Driver/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/Driver/Makefile?rev=83444&r1=83443&r2=83444&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/lib/Driver/Makefile (original)
+++ cfe/branches/Apple/Dib/lib/Driver/Makefile Tue Oct 6 20:26:29 2009
@@ -11,13 +11,14 @@
LIBRARYNAME := clangDriver
BUILD_ARCHIVE = 1
CXXFLAGS = -fno-rtti
-
+OS_MAJOR := -DOS_MAJOR=$(shell uname -r | sed 's/\..*//')
include $(LEVEL)/Makefile.common
SVN_REVISION := $(shell cd $(PROJ_SRC_DIR)/../.. && svnversion)
CPP.Defines += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include \
+ $(OS_MAJOR) \
-DSVN_REVISION='"$(SVN_REVISION)"'
$(ObjDir)/.ver-svn .ver:
Modified: cfe/branches/Apple/Dib/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/Driver/ToolChains.cpp?rev=83444&r1=83443&r2=83444&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/lib/Driver/ToolChains.cpp (original)
+++ cfe/branches/Apple/Dib/lib/Driver/ToolChains.cpp Tue Oct 6 20:26:29 2009
@@ -30,7 +30,7 @@
Darwin_X86::Darwin_X86(const HostInfo &Host, const char *Arch,
const char *Platform, const char *OS,
const unsigned (&_DarwinVersion)[3],
- const unsigned (&_GCCVersion)[3])
+ const unsigned (&_GCCVersion)[4])
: ToolChain(Host, Arch, Platform, OS) {
DarwinVersion[0] = _DarwinVersion[0];
DarwinVersion[1] = _DarwinVersion[1];
@@ -38,12 +38,13 @@
GCCVersion[0] = _GCCVersion[0];
GCCVersion[1] = _GCCVersion[1];
GCCVersion[2] = _GCCVersion[2];
+ GCCVersion[3] = _GCCVersion[3];
llvm::raw_string_ostream(MacosxVersionMin)
<< "10." << DarwinVersion[0] - 4 << '.' << DarwinVersion[1];
ToolChainDir = "i686-apple-darwin";
- ToolChainDir += llvm::utostr(DarwinVersion[0]);
+ ToolChainDir += llvm::utostr(GCCVersion[3]);
ToolChainDir += "/";
ToolChainDir += llvm::utostr(GCCVersion[0]);
ToolChainDir += '.';
Modified: cfe/branches/Apple/Dib/lib/Driver/ToolChains.h
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/Driver/ToolChains.h?rev=83444&r1=83443&r2=83444&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/lib/Driver/ToolChains.h (original)
+++ cfe/branches/Apple/Dib/lib/Driver/ToolChains.h Tue Oct 6 20:26:29 2009
@@ -52,7 +52,7 @@
unsigned DarwinVersion[3];
/// GCC version to use.
- unsigned GCCVersion[3];
+ unsigned GCCVersion[4];
/// The directory suffix for this tool chain.
std::string ToolChainDir;
@@ -66,7 +66,7 @@
public:
Darwin_X86(const HostInfo &Host, const char *Arch, const char *Platform,
const char *OS, const unsigned (&DarwinVersion)[3],
- const unsigned (&GCCVersion)[3]);
+ const unsigned (&GCCVersion)[4]);
~Darwin_X86();
void getDarwinVersion(unsigned (&Res)[3]) const {
More information about the llvm-branch-commits
mailing list