Specify CMAKE_BUILD_TYPE=RelWithDebInfo

We didn't specify a build type before like we do for the `llvm` and
`clang` projects. This changes causes `-DNDEBUG` to be added to the
compile flags among probably other changes. We have this in `llvm` and
`clang` but not here and I don't know why. I for example need `-DNDEBUG`
to be defined because it is required for my PGO instrumentation builds.

Here's the help for this `CMAKE_BUILD_TYPE` option:

https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html
This commit is contained in:
Konrad Kleine 2022-07-11 12:57:32 +02:00
parent c5250f6f66
commit 6b51a15fd3

View File

@ -12,7 +12,7 @@
Name: lld Name: lld
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist} Release: 2%{?dist}
Summary: The LLVM Linker Summary: The LLVM Linker
License: NCSA License: NCSA
@ -94,6 +94,7 @@ LLVM regression tests.
%cmake \ %cmake \
-GNinja \ -GNinja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-DLLVM_DYLIB_COMPONENTS="all" \ -DLLVM_DYLIB_COMPONENTS="all" \
-DCMAKE_SKIP_RPATH:BOOL=ON \ -DCMAKE_SKIP_RPATH:BOOL=ON \
@ -205,6 +206,9 @@ fi
%{_datadir}/lld/lit.lld-test.cfg.py %{_datadir}/lld/lit.lld-test.cfg.py
%changelog %changelog
* Mon Jul 11 2022 Konrad Kleine <kkleine@redhat.com> - 14.0.5-2
- Set build type to RelWithDebInfo
* Fri Jun 17 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.5-1 * Fri Jun 17 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.5-1
- Update to 14.0.5 - Update to 14.0.5