Skip to content

Commit 84412f2

Browse files
committed
Disable libcxx conditional on Fedora <= 40
Fedora 41 was the first version that enabled FatLTO for clang-built files. FatLTO is important in order to link binaries with GNU LD, which is the linker used while building the LLVM runtimes. Considering the libcxx conditional has been added recently in rawhide and will only be used in Fedora >= 42 and RHEL versions, I believe it's safe to simply disable it when building on Fedora <= 40, considering this setup will only be used while testing LLVM Snapshots for a few months until this Fedora version reaches EOL.
1 parent 438bae3 commit 84412f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
%endif
5353

5454
# The libcxx build condition also enables libcxxabi and libunwind.
55-
%if %{without compat_build} && 0%{?fedora}
55+
# Fedora 41 is the first version that enabled FatLTO for clang-built files.
56+
# Without FatLTO, we can't enable ThinLTO and link using GNU LD.
57+
%if %{without compat_build} && 0%{?fedora} >= 41
5658
%bcond_without libcxx
5759
%else
5860
%bcond_with libcxx

0 commit comments

Comments
 (0)