SHA256
1
0
forked from pool/llvm
llvm/assume-opensuse.patch
Martin Pluskal f49d2e187c Accepting request 368685 from home:namtrac:branches:devel:tools:compiler
- Update to llvm 3.8.0
  * See http://llvm.org/releases/3.8.0/docs/ReleaseNotes.html and
    http://llvm.org/releases/3.8.0/tools/clang/docs/ReleaseNotes.html
- Fold lldb build into llvm and disable python support
- Drop clang-disable-ada-extension.patch, libcxxabi-exceptions.patch
  and cmake-host-triple.patch
- Add revert-cmake-soname.patch to fix soname handling

OBS-URL: https://build.opensuse.org/request/show/368685
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=430
2016-03-09 06:32:53 +00:00

22 lines
702 B
Diff

Index: cfe-3.8.0.src/lib/Driver/ToolChains.cpp
===================================================================
--- 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)
}
static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
+#if 0
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
llvm::MemoryBuffer::getFile("/etc/lsb-release");
if (File) {
@@ -3155,6 +3156,8 @@ static Distro DetectDistro(const Driver
return ArchLinux;
return UnknownDistro;
+#endif
+ return OpenSUSE;
}
/// \brief Get our best guess at the multiarch triple for a target.