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