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:
parent
c5250f6f66
commit
6b51a15fd3
6
lld.spec
6
lld.spec
@ -12,7 +12,7 @@
|
||||
|
||||
Name: lld
|
||||
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: The LLVM Linker
|
||||
|
||||
License: NCSA
|
||||
@ -94,6 +94,7 @@ LLVM regression tests.
|
||||
|
||||
%cmake \
|
||||
-GNinja \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DLLVM_DYLIB_COMPONENTS="all" \
|
||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||
@ -205,6 +206,9 @@ fi
|
||||
%{_datadir}/lld/lit.lld-test.cfg.py
|
||||
|
||||
%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
|
||||
- Update to 14.0.5
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user