compat_build: Avoid patching non-existing clang-tools-extra
Given that we're building `--with=compat_build`, when we don't exclude the patches, the following logic will try to apply all patches to clang even if they are meant for clang-tools-extra: ``` %if %{with compat_build} %autosetup -n %{clang_srcdir} -p2 %else ``` I'm not willing to patch the %auto... part because I fear to break stuff. Both ways work.
This commit is contained in:
parent
dc76251478
commit
b112eb68bf
|
@ -69,11 +69,13 @@ Patch5: 0001-Work-around-gcc-miscompile.patch
|
|||
Patch6: m-branch-protection.patch
|
||||
Patch7: 0010-PATCH-clang-Produce-DWARF4-by-default.patch
|
||||
|
||||
%if %{without compat_build}
|
||||
# Patches for clang-tools-extra
|
||||
# See https://reviews.llvm.org/D120301
|
||||
Patch201: llvm-hello.patch
|
||||
# See https://github.com/llvm/llvm-project/issues/54116
|
||||
Patch202: remove-test.patch
|
||||
%endif
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
|
|
Loading…
Reference in New Issue