chore(build): try to use mold instead

This commit is contained in:
Nils Andreas Svee committed 2025-05-09 19:48:28 +07:00
1 parent 2656e7e4f6
commit 4b566bc04d
2 files changed
+11 -1

No files matched your search

Vendored
+9 -1
View File
@@ -2,6 +2,14 @@ pipeline {
agent any
stages {
stage('Preparation') {
steps {
sh '''
mkdir -p .local
wget -O- https://github.com/rui314/mold/releases/download/v2.39.0/mold-2.39.0-x86_64-linux.tar.gz | tar -xzv --strip-components=1 -C .local/
'''
}
}
stage('Main') {
matrix {
axes {
@@ -22,7 +30,7 @@ pipeline {
steps {
sh '''
export CARGO_HOME="$(pwd)/.cargo"
export CC="$TARGET_CC"
export PATH="$(pwd)/.local/bin:${PATH}"
printenv | sort
cargo build \
--release
+2
View File
@@ -0,0 +1,2 @@
[target.'cfg(target_os = "linux")']
rustflags = ["-C", "link-arg=-fuse-ld=mold"]