Change debug cmake flags according to Dockerfile options

This commit is contained in:
Ilya Fedin 2025-05-29 07:41:20 +00:00 committed by John Preston
parent 108b116b06
commit edc84731ac

View file

@ -25,6 +25,7 @@ RUN dnf -y install epel-release \
RUN alternatives --set python3 /usr/bin/python3.11
RUN python3 -m pip install meson ninja
RUN sed -i '/CMAKE_${lang}_FLAGS_DEBUG_INIT/s/")/ -O0 {% if LTO %}-fno-lto -fno-use-linker-plugin -fuse-ld=lld{% endif %}")/' /usr/share/cmake/Modules/Compiler/GNU.cmake
RUN sed -i '/Requires.private: valgrind/d' /usr/lib64/pkgconfig/libdrm.pc
RUN echo set debuginfod enabled on > /opt/rh/$TOOLSET/root/etc/gdbinit.d/00-debuginfod.gdb
RUN adduser user