Remove LTO, potential cause of memleak

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-05-01 03:06:31 +05:30
parent b0a7dfff00
commit c20a075605
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -2,10 +2,6 @@ FROM nimlang/nim:alpine as builder
RUN apk update && apk add git \
build-base \
clang \
llvm \
llvm-dev \
lld \
curl \
bash \
openssl3 \
@ -20,7 +16,6 @@ WORKDIR /app
# Build with necessary params to enable statically linking openssl, glibc and sqlite3
RUN nimble build --passL:-L/usr/lib \
-d:ssl \
--cc:clang \
-p:. \
--dynlibOverride:ssl \
--dynlibOverride:crypto \
@ -29,8 +24,6 @@ RUN nimble build --passL:-L/usr/lib \
--passl:-lsqlite3 \
--passl:-lcrypto \
--passL:-static \
--passL:"-flto=full" \
--passL:"-fuse-ld=lld" \
-d:release \
--opt:speed \
--accept