forked from pool/llvm18
7e97117ede
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm18?expand=0&rev=28
35 lines
1.2 KiB
Diff
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-18.1.0rc1.src/unittests/Driver/CMakeLists.txt
|
|
===================================================================
|
|
--- clang-18.1.0rc1.src.orig/unittests/Driver/CMakeLists.txt
|
|
+++ clang-18.1.0rc1.src/unittests/Driver/CMakeLists.txt
|
|
@@ -7,7 +7,6 @@ set(LLVM_LINK_COMPONENTS
|
|
)
|
|
|
|
add_clang_unittest(ClangDriverTests
|
|
- DistroTest.cpp
|
|
DXCModeTest.cpp
|
|
GCCVersionTest.cpp
|
|
ToolChainTest.cpp
|