chore(build): try to use mold instead
This commit is contained in:
2 files changed
+11
-1
No files matched your search
Vendored
+9
-1
@@ -2,6 +2,14 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
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') {
|
stage('Main') {
|
||||||
matrix {
|
matrix {
|
||||||
axes {
|
axes {
|
||||||
@@ -22,7 +30,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
export CARGO_HOME="$(pwd)/.cargo"
|
export CARGO_HOME="$(pwd)/.cargo"
|
||||||
export CC="$TARGET_CC"
|
export PATH="$(pwd)/.local/bin:${PATH}"
|
||||||
printenv | sort
|
printenv | sort
|
||||||
cargo build \
|
cargo build \
|
||||||
--release
|
--release
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
[target.'cfg(target_os = "linux")']
|
||||||
|
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
||||||
Reference in new issue
Block a user