Use LLD linker

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-04-25 10:27:55 +05:30
parent a49e047457
commit 26fedf56b0
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -1,6 +1,6 @@
FROM nimlang/nim:alpine as builder FROM nimlang/nim:alpine as builder
RUN apk update && apk add git build-base llvm llvm-dev curl bash openssl openssl-dev openssl-libs-static sqlite-dev sqlite-static RUN apk update && apk add git build-base llvm llvm-dev lld curl bash openssl openssl-dev openssl-libs-static sqlite-dev sqlite-static
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
@ -18,6 +18,7 @@ RUN nimble build --passL:-L/usr/lib \
--passl:-lcrypto \ --passl:-lcrypto \
--passL:-static \ --passL:-static \
--passL:"-flto=full" \ --passL:"-flto=full" \
--passL:"-fuse-ld=lld" \
-d:release \ -d:release \
--opt:speed \ --opt:speed \
--accept --accept