Skip to content

Commit

Permalink
Merge IB/CMSSW_13_3_X/master into IB/CMSSW_13_3_X/root628.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed Jul 19, 2023
2 parents fb4b201 + b47eed2 commit 25a7640
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions root.spec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ export CXXFLAGS="${CXXFLAGS} %{arch_build_flags}"
cmake ../%{n}-%{realversion} \
-G Ninja \
-DCMAKE_BUILD_TYPE=%{cmake_build_type} \
%if %{is_debug_build root/llvm}
-DLLVM_BUILD_TYPE=Debug \
%else
-DLLVM_BUILD_TYPE=Release \
%endif
-DCMAKE_INSTALL_PREFIX="%{i}" \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
Expand Down
4 changes: 2 additions & 2 deletions rpm-preamble.file
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,12 @@ fi

#Enable debug mode for cmssw packages, e.g debug root, geant4, etc
%if "%{?cms_debug_packages:set}" == "set"
%define is_debug_build %(if echo %{cms_debug_packages} | tr , '\\n' | grep -q '^%{pkgname}$' ; then echo 1 ; else echo 0; fi)
%define is_debug_build() %(if echo %{cms_debug_packages} | tr , '\\n' | grep -q '^%{1}$' ; then echo 1 ; else echo 0; fi)
%else
%define is_debug_build 0
%endif

%if %{is_debug_build}
%if %{is_debug_build %{pkgname}}
%define cmake_build_type Debug
%else
%define cmake_build_type Release
Expand Down

0 comments on commit 25a7640

Please sign in to comment.