Skip to content

Commit dea0012

Browse files
tstellartstellar
authored andcommitted
Drop LLVM_RAM_PER_COMPILE_JOB option on s390x
The underlying NUMBER_OF_LOGICAL_CORES query in cmake does not work on s390x, which causes the build pool to be limited to 1 job. This was causing extremely slow builds on s390x/RHEL8.
1 parent 45ffdf4 commit dea0012

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm.spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,8 +1344,13 @@ popd
13441344
%endif
13451345

13461346
%if 0%{?rhel} == 8
1347+
%ifnarch s390x
1348+
# This option uses the NUMBER_OF_LOGICAL_CORES query in CMake which doesn't
1349+
# work on s390x.
1350+
# https://gitlab.kitware.com/cmake/cmake/-/issues/26619
13471351
%global cmake_config_args %{cmake_config_args} -DLLVM_RAM_PER_COMPILE_JOB=2048
13481352
%endif
1353+
%endif
13491354
#endregion misc options
13501355

13511356
extra_cmake_args=''

0 commit comments

Comments
 (0)