mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-25 15:03:03 +02:00
Use lld when building without LTO in Dockerfile
This commit is contained in:
parent
dda587dc6f
commit
108b116b06
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ ENV RANLIB=gcc-ranlib
|
|||
ENV NM=gcc-nm
|
||||
ENV CFLAGS='{% if DEBUG %}-g{% endif %} -O3 {% if LTO %}-flto=auto -ffat-lto-objects{% endif %} -pipe -fPIC -fno-strict-aliasing -fexceptions -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fhardened -Wno-hardened'
|
||||
ENV CXXFLAGS=$CFLAGS
|
||||
ENV LDFLAGS='{% if not LTO %}-fuse-ld=lld{% endif %}'
|
||||
|
||||
ENV CMAKE_GENERATOR=Ninja
|
||||
ENV CMAKE_BUILD_TYPE=None
|
||||
|
|
Loading…
Add table
Reference in a new issue