SHA256
1
0
forked from pool/llvm
llvm/assume-opensuse.patch
Ismail Dönmez 5ee9c90c79 - Update to version 3.7.0
* No changelog upstream

- Update to version 3.7.0
  * See http://llvm.org/releases/3.7.0/docs/ReleaseNotes.html
- Merge aarch64-suse-support.patch into arm_suse_support.diff
- Refresh arm_suse_support.diff, llvm-fix-find-gcc5-install.patch
- Remove llvm-fix-parsearmarch.patch, upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=419
2015-09-03 09:44:07 +00:00

22 lines
750 B
Diff

Index: cfe-3.7.0.src/lib/Driver/ToolChains.cpp
===================================================================
--- cfe-3.7.0.src/lib/Driver/ToolChains.cpp
+++ cfe-3.7.0.src/lib/Driver/ToolChains.cpp
@@ -2794,6 +2794,7 @@ static bool IsUbuntu(enum Distro Distro)
}
static Distro DetectDistro(llvm::Triple::ArchType Arch) {
+ return OpenSUSE; /*
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> File =
llvm::MemoryBuffer::getFile("/etc/lsb-release");
if (File) {
@@ -2861,7 +2862,7 @@ static Distro DetectDistro(llvm::Triple:
if (llvm::sys::fs::exists("/etc/arch-release"))
return ArchLinux;
- return UnknownDistro;
+ return UnknownDistro;*/
}
/// \brief Get our best guess at the multiarch triple for a target.