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