File assume-opensuse.patch of Package llvm20
35
1
Index: clang-12.0.0rc1.src/lib/Driver/Distro.cpp
2
===================================================================
3
--- clang-12.0.0rc1.src.orig/lib/Driver/Distro.cpp
4
+++ clang-12.0.0rc1.src/lib/Driver/Distro.cpp
5
6
}
7
8
static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
9
+ return Distro::OpenSUSE;
10
+/*
11
Distro::DistroType Version = Distro::UnknownDistro;
12
13
// Newer freedesktop.org's compilant systemd-based systems
14
15
if (VFS.exists("/etc/gentoo-release"))
16
return Distro::Gentoo;
17
18
- return Distro::UnknownDistro;
19
+ return Distro::UnknownDistro;*/
20
}
21
22
static Distro::DistroType GetDistro(llvm::vfs::FileSystem &VFS,
23
Index: clang-18.1.0rc1.src/unittests/Driver/CMakeLists.txt
24
===================================================================
25
--- clang-18.1.0rc1.src.orig/unittests/Driver/CMakeLists.txt
26
+++ clang-18.1.0rc1.src/unittests/Driver/CMakeLists.txt
27
28
)
29
30
add_clang_unittest(ClangDriverTests
31
- DistroTest.cpp
32
DXCModeTest.cpp
33
GCCVersionTest.cpp
34
ToolChainTest.cpp
35