Skip to content

Commit 2d2a67a

Browse files
kashyapcnikic
authored andcommitted
More riscv64-related enablement
Notes: - Cherry-pick from here (from Songsong Zhang) and resolve conflicts throughout the spec: https://gitlab.com/fedoravforce/llvm/-/commit/2485502 ("Add riscv64 support", 2025-03-15) - Add Songsong's and David Abdurachmanov's Signed-off-by. Signed-off-by: Kashyap Chamarthy <[email protected]> Signed-off-by: David Abdurachmanov <[email protected]> Signed-off-by: Songsong Zhang <[email protected]>
1 parent b6af79e commit 2d2a67a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

llvm.spec

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
%global unprefixed_libdir %{_lib}
219219

220220
%if 0%{?rhel}
221-
%global targets_to_build "X86;AMDGPU;PowerPC;NVPTX;SystemZ;AArch64;BPF;WebAssembly"
221+
%global targets_to_build "X86;AMDGPU;PowerPC;NVPTX;SystemZ;AArch64;BPF;WebAssembly;RISCV"
222222
%global experimental_targets_to_build ""
223223
%else
224224
%global targets_to_build "all"
@@ -316,7 +316,7 @@
316316
#region main package
317317
Name: %{pkg_name_llvm}
318318
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}}
319-
Release: 1%{?dist}
319+
Release: 2%{?dist}
320320
Summary: The Low Level Virtual Machine
321321

322322
License: Apache-2.0 WITH LLVM-exception OR NCSA
@@ -2470,7 +2470,7 @@ export LIT_OPTS="$LIT_OPTS --max-retries-per-test=4"
24702470

24712471
%if 0%{?rhel}
24722472
# libomp tests are often very slow on s390x brew builders
2473-
%ifnarch s390x
2473+
%ifnarch s390x riscv64
24742474
%cmake_build --target check-openmp
24752475
%endif
24762476
%else
@@ -3145,7 +3145,7 @@ fi
31453145
%{_prefix}/lib/clang/%{maj_ver}/lib/%{compiler_rt_triple}/clang_rt.crtend.o
31463146
%endif
31473147

3148-
%ifnarch %{ix86} s390x
3148+
%ifnarch %{ix86} s390x riscv64
31493149
%{_prefix}/lib/clang/%{maj_ver}/lib/%{compiler_rt_triple}/liborc_rt.a
31503150
%endif
31513151

@@ -3432,6 +3432,10 @@ fi
34323432

34333433
#region changelog
34343434
%changelog
3435+
* Fri Jun 20 2025 Kashyap Chamarthy <[email protected]> - 20.1.7-2
3436+
- Add riscv64 enablement bits; thanks: Songsong Zhang
3437+
([email protected]) and David Abdurachmanov ([email protected])
3438+
34353439
* Thu Jun 19 2025 Nikita Popov <[email protected]> - 20.1.7-1
34363440
- Update to LLVM 20.1.7
34373441

0 commit comments

Comments
 (0)