Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm12 & llvm16: update to build with llvmgold.so #8669

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion SPECS/llvm/llvm.spec
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
Summary: A collection of modular and reusable compiler and toolchain technologies.
Name: llvm
Version: 12.0.1
Release: 7%{?dist}
Release: 8%{?dist}
License: NCSA
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Tools
URL: https://llvm.org/
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
Patch1: llvm-12.0.1-issue-49955-workaround.patch
BuildRequires: binutils-devel
BuildRequires: cmake
BuildRequires: libffi-devel
BuildRequires: libxml2-devel
Expand Down Expand Up @@ -52,6 +53,7 @@ cmake -G Ninja \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \
-DLLVM_INCLUDE_GO_TESTS=No \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_BINUTILS_INCDIR=%{_includedir} \
-Wno-dev ..

%ninja_build LLVM
Expand Down Expand Up @@ -89,6 +91,9 @@ ninja check-all
%{_includedir}/*

%changelog
* Tue Apr 02 2024 Andrew Phelps <[email protected]> - 12.0.1-8
- Define LLVM_BINUTILS_INCDIR so that LLVMgold.so is built.

* Thu Jun 29 2023 Andrew Phelps <[email protected]> - 12.0.1-7
- Modify parallel compile jobs limit to _smp_ncpus_max if set, or _smp_build_ncpus

Expand Down
7 changes: 6 additions & 1 deletion SPECS/llvm/llvm16.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
Summary: A collection of modular and reusable compiler and toolchain technologies.
Name: llvm16
Version: 16.0.0
Release: 3%{?dist}
Release: 4%{?dist}
License: NCSA
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Tools
URL: https://llvm.org/
Source0: https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-%{version}.tar.gz
BuildRequires: binutils-devel
BuildRequires: cmake
BuildRequires: libffi-devel
BuildRequires: libxml2-devel
Expand Down Expand Up @@ -52,6 +53,7 @@ cmake -G Ninja \
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \
-DLLVM_INCLUDE_GO_TESTS=No \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_BINUTILS_INCDIR=%{_includedir} \
-Wno-dev ../llvm

%ninja_build LLVM
Expand Down Expand Up @@ -89,6 +91,9 @@ ninja check-all
%{_includedir}/*

%changelog
* Tue Apr 02 2024 Andrew Phelps <[email protected]> - 16.0.0-4
- Define LLVM_BINUTILS_INCDIR so that LLVMgold.so is built.

* Thu Jun 29 2023 Andrew Phelps <[email protected]> - 16.0.0-3
- Modify parallel compile jobs limit to _smp_ncpus_max if set, or _smp_build_ncpus

Expand Down
Loading