llvm16/assume-opensuse.patch
Aaron Puchert e16eeb0094 - Apply clang-shlib-symbol-versioning.patch to add symbol versions
to libclang-cpp.so similar to libLLVM.so. This is required when
  multiple versions of the library are loaded into the same
  process. (boo#1219405, boo#1221183, boo#1233220)
- Require libffi when we build openmp for offloading.
- Correct target name for libomptarget in file list.
- Update llvm16.keyring from upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm16?expand=0&rev=38
2024-11-17 19:58:25 +00:00

35 lines
1.2 KiB
Diff

Index: clang-12.0.0rc1.src/lib/Driver/Distro.cpp
===================================================================
--- clang-12.0.0rc1.src.orig/lib/Driver/Distro.cpp
+++ clang-12.0.0rc1.src/lib/Driver/Distro.cpp
@@ -93,6 +93,8 @@ static Distro::DistroType DetectLsbRelease...
}
static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
+ return Distro::OpenSUSE;
+/*
Distro::DistroType Version = Distro::UnknownDistro;
// Newer freedesktop.org's compilant systemd-based systems
@@ -200,7 +202,7 @@ static Distro::DistroType DetectDistro(l
if (VFS.exists("/etc/gentoo-release"))
return Distro::Gentoo;
- return Distro::UnknownDistro;
+ return Distro::UnknownDistro;*/
}
static Distro::DistroType GetDistro(llvm::vfs::FileSystem &VFS,
Index: clang-16.0.0rc1.src/unittests/Driver/CMakeLists.txt
===================================================================
--- clang-16.0.0rc1.src.orig/unittests/Driver/CMakeLists.txt
+++ clang-16.0.0rc1.src/unittests/Driver/CMakeLists.txt
@@ -6,7 +6,6 @@ set(LLVM_LINK_COMPONENTS
)
add_clang_unittest(ClangDriverTests
- DistroTest.cpp
DXCModeTest.cpp
ToolChainTest.cpp
ModuleCacheTest.cpp