chore: use lld with rust
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -8,6 +8,7 @@ RUN apk add --no-cache \
|
|||||||
gcc \
|
gcc \
|
||||||
musl-dev \
|
musl-dev \
|
||||||
libgcc \
|
libgcc \
|
||||||
|
lld \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
pkgconfig \
|
pkgconfig \
|
||||||
make \
|
make \
|
||||||
|
|||||||
Vendored
+1
-1
@@ -42,7 +42,7 @@ pipeline {
|
|||||||
GCC = "${GCC_TARGET}-gcc"
|
GCC = "${GCC_TARGET}-gcc"
|
||||||
LINKER_ENV_KEY = getLinkerEnv(TARGET)
|
LINKER_ENV_KEY = getLinkerEnv(TARGET)
|
||||||
PATH_CC = "/opt/${GCC_TARGET}-cross/bin:/home/sdk/.cargo/bin"
|
PATH_CC = "/opt/${GCC_TARGET}-cross/bin:/home/sdk/.cargo/bin"
|
||||||
RUSTFLAGS = "-C target-feature=+crt-static"
|
RUSTFLAGS = "-C target-feature=+crt-static -C link-arg=-fuse-ld=lld"
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|||||||
Reference in new issue
Block a user