Use LLD linker
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
a49e047457
commit
26fedf56b0
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue