mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Get rid of -Ofast on Linux
This seem to make some miscompilation that lead to hangs
This commit is contained in:
@@ -51,7 +51,7 @@ FROM builder-base AS builder
|
|||||||
ENV AR gcc-ar
|
ENV AR gcc-ar
|
||||||
ENV RANLIB gcc-ranlib
|
ENV RANLIB gcc-ranlib
|
||||||
ENV NM gcc-nm
|
ENV NM gcc-nm
|
||||||
ENV CFLAGS {% if DEBUG %}-g{% endif %} -Ofast {% if LTO %}{{ CFLAGS_LTO }}{% endif %} -pipe -fPIC -fstack-protector-all -fstack-clash-protection -DNDEBUG -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS
|
ENV CFLAGS {% if DEBUG %}-g{% endif %} -O3 {% if LTO %}{{ CFLAGS_LTO }}{% endif %} -pipe -fPIC -fstack-protector-all -fstack-clash-protection -DNDEBUG -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS
|
||||||
ENV CXXFLAGS $CFLAGS
|
ENV CXXFLAGS $CFLAGS
|
||||||
|
|
||||||
FROM builder AS patches
|
FROM builder AS patches
|
||||||
@@ -187,7 +187,7 @@ FROM builder AS opus
|
|||||||
RUN git clone -b v1.3.1 --depth=1 {{ GIT }}/xiph/opus.git \
|
RUN git clone -b v1.3.1 --depth=1 {{ GIT }}/xiph/opus.git \
|
||||||
&& cd opus \
|
&& cd opus \
|
||||||
&& ./autogen.sh \
|
&& ./autogen.sh \
|
||||||
&& ./configure --enable-float-approx \
|
&& ./configure \
|
||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
&& make DESTDIR="{{ LibrariesPath }}/opus-cache" install \
|
&& make DESTDIR="{{ LibrariesPath }}/opus-cache" install \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
@@ -304,10 +304,7 @@ RUN git clone -b v0.8.1 --depth=1 {{ GIT }}/libjxl/libjxl.git \
|
|||||||
FROM builder AS rnnoise
|
FROM builder AS rnnoise
|
||||||
RUN git clone -b master --depth=1 {{ GIT }}/desktop-app/rnnoise \
|
RUN git clone -b master --depth=1 {{ GIT }}/desktop-app/rnnoise \
|
||||||
&& cd rnnoise \
|
&& cd rnnoise \
|
||||||
&& cmake -GNinja -B build . \
|
&& cmake -GNinja -B build . -DCMAKE_BUILD_TYPE=None \
|
||||||
-DCMAKE_BUILD_TYPE=None \
|
|
||||||
-DCMAKE_C_FLAGS="$CFLAGS -DFLOAT_APPROX" \
|
|
||||||
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DFLOAT_APPROX" \
|
|
||||||
&& cmake --build build --parallel \
|
&& cmake --build build --parallel \
|
||||||
&& mkdir -p "{{ LibrariesPath }}/rnnoise-cache/usr/local/include" \
|
&& mkdir -p "{{ LibrariesPath }}/rnnoise-cache/usr/local/include" \
|
||||||
&& cp "include/rnnoise.h" "{{ LibrariesPath }}/rnnoise-cache/usr/local/include/" \
|
&& cp "include/rnnoise.h" "{{ LibrariesPath }}/rnnoise-cache/usr/local/include/" \
|
||||||
|
2
cmake
2
cmake
Submodule cmake updated: c03178c09b...d625b4d1ba
Reference in New Issue
Block a user