2016-03-09 06:32:53 +00:00
|
|
|
Index: cfe-3.8.0.src/lib/Driver/ToolChains.cpp
|
2013-11-19 09:12:59 +00:00
|
|
|
===================================================================
|
2016-04-20 06:47:36 +00:00
|
|
|
--- cfe-3.8.0.src/lib/Driver/ToolChains.cpp.orig
|
2016-03-09 06:32:53 +00:00
|
|
|
+++ cfe-3.8.0.src/lib/Driver/ToolChains.cpp
|
2016-04-20 06:47:36 +00:00
|
|
|
@@ -3422,6 +3422,7 @@ static bool IsUbuntu(enum Distro Distro)
|
2011-08-12 10:31:37 +00:00
|
|
|
}
|
|
|
|
|
2016-03-09 06:32:53 +00:00
|
|
|
static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
|
|
|
|
+#if 0
|
2014-09-04 16:28:42 +00:00
|
|
|
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
|
|
|
|
llvm::MemoryBuffer::getFile("/etc/lsb-release");
|
|
|
|
if (File) {
|
2016-04-20 06:47:36 +00:00
|
|
|
@@ -3498,6 +3499,8 @@ static Distro DetectDistro(const Driver
|
2014-09-04 16:28:42 +00:00
|
|
|
return ArchLinux;
|
|
|
|
|
2016-03-09 06:32:53 +00:00
|
|
|
return UnknownDistro;
|
|
|
|
+#endif
|
|
|
|
+ return OpenSUSE;
|
2011-08-12 10:31:37 +00:00
|
|
|
}
|
|
|
|
|
2013-11-19 09:12:59 +00:00
|
|
|
/// \brief Get our best guess at the multiarch triple for a target.
|