#122 Enable lto on s390x and arm
Merged 10 months ago by sergesanspaille. Opened 10 months ago by tstellar.
rpms/ tstellar/llvm lto-s390x-arm  into  rawhide

file modified
+4 -8
@@ -68,7 +68,7 @@ 

  

  Name:		%{pkg_name}

  Version:	%{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}

- Release:	6%{?dist}

+ Release:	7%{?dist}

  Summary:	The Low Level Virtual Machine

  

  License:	NCSA
@@ -207,14 +207,7 @@ 

  	utils/update_cc_test_checks.py

  

  %build

- 

- # Disable lto on s390x due to https://bugzilla.redhat.com/show_bug.cgi?id=2017193

- # Disable lto on arm due to https://bugzilla.redhat.com/show_bug.cgi?id=1918924

- %ifarch s390x %{arm}

- %global _lto_cflags %{nil}

- %else

  %global _lto_cflags -flto=thin

- %endif

  

  %ifarch s390 s390x %{arm} %ix86

  # Decrease debuginfo verbosity to reduce memory consumption during final library linking
@@ -548,6 +541,9 @@ 

  %endif

  

  %changelog

+ * Thu Nov 11 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-7

+ - Enable lto on s390x and arm

+ 

  * Mon Oct 25 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-6

  - Build with Thin LTO

  

no initial comment

Build succeeded.

<3

error: build-id found in /builddir/build/BUILDROOT/llvm-13.0.0-7.fc36.arm/usr/bin/FileCheck too small

on arm, never met that issue before...

@sergesanspaille This error is because arm is using lld and lld uses a different --build-id algorithm than binutils and rpmbuild can't handle it. I need to update redhat-rpm-config to use the expected build-id algorithm.

rebased onto 1bdf054

10 months ago

ok, I'm merging the change then.

Pull-Request has been merged by sergesanspaille

10 months ago

Build succeeded.

Metadata