First pass at Solaris toolchain support. This version compiles and links hello
world on Solaris 11 for both x86 and x86-64 using the built-in assembler and
Solaris (not GNU) ld, however it currently relies on a hard-coded GCC location
to find crtbegin.o and crtend.o, as well as libgcc and libgcc_eh.
llvm-svn: 150580
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index b494ed1..4209c95 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -1663,6 +1663,9 @@
else
TC = new toolchains::Linux(*this, Target);
break;
+ case llvm::Triple::Solaris:
+ TC = new toolchains::Solaris(*this, Target);
+ break;
case llvm::Triple::Win32:
TC = new toolchains::Windows(*this, Target);
break;