llvm: modify LLVM_PARALLEL_COMPILE_JOBS (#5756)

* remove LLVM_PARALLEL_COMPILE_JOBS

* use _smp_ncpus_max
This commit is contained in:
Andrew Phelps 2023-06-30 20:05:55 -07:00 коммит произвёл GitHub
Родитель 4f65995359
Коммит 9bd11d2669
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 10 добавлений и 4 удалений

Просмотреть файл

@ -1,7 +1,7 @@
Summary: A collection of modular and reusable compiler and toolchain technologies.
Name: llvm
Version: 12.0.1
Release: 6%{?dist}
Release: 7%{?dist}
License: NCSA
Vendor: Microsoft Corporation
Distribution: Mariner
@ -44,7 +44,7 @@ cmake -G Ninja \
-DLLVM_ENABLE_RTTI=ON \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_PARALLEL_LINK_JOBS=1 \
-DLLVM_PARALLEL_COMPILE_JOBS=2 \
-DLLVM_PARALLEL_COMPILE_JOBS=%{?_smp_ncpus_max:%_smp_build_ncpus} \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_INCLUDE_TESTS=ON \
@ -89,6 +89,9 @@ ninja check-all
%{_includedir}/*
%changelog
* Thu Jun 29 2023 Andrew Phelps <anphel@microsoft.com> - 12.0.1-7
- Modify parallel compile jobs limit to _smp_ncpus_max if set, or _smp_build_ncpus
* Thu Jun 01 2023 Andrew Phelps <anphel@microsoft.com> - 12.0.1-6
- Limit to 2 parallel compile jobs to avoid running out of memory in build

Просмотреть файл

@ -1,7 +1,7 @@
Summary: A collection of modular and reusable compiler and toolchain technologies.
Name: llvm16
Version: 16.0.0
Release: 2%{?dist}
Release: 3%{?dist}
License: NCSA
Vendor: Microsoft Corporation
Distribution: Mariner
@ -44,7 +44,7 @@ cmake -G Ninja \
-DLLVM_ENABLE_RTTI=ON \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_PARALLEL_LINK_JOBS=1 \
-DLLVM_PARALLEL_COMPILE_JOBS=2 \
-DLLVM_PARALLEL_COMPILE_JOBS=%{?_smp_ncpus_max:%_smp_build_ncpus} \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_INCLUDE_TESTS=ON \
@ -89,6 +89,9 @@ ninja check-all
%{_includedir}/*
%changelog
* Thu Jun 29 2023 Andrew Phelps <anphel@microsoft.com> - 16.0.0-3
- Modify parallel compile jobs limit to _smp_ncpus_max if set, or _smp_build_ncpus
* Thu Jun 01 2023 Andrew Phelps <anphel@microsoft.com> - 16.0.0-2
- Limit to 2 parallel compile jobs to avoid running out of memory in build