summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevan Carpenter <git@dvn.me>2023-11-22 09:18:32 -0500
committerDevan Carpenter <git@dvn.me>2023-11-22 13:06:38 -0500
commit35ee9c6a9c9280b058229e0e27539f64c94ea48d (patch)
tree762667dff5131092c1d8b2b406df489a83535486
parent0480ae613800667049528379d490abb696a9336f (diff)
try using mold
-rw-r--r--.gitlab-ci.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0f0ed144..3ea45751 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -64,8 +64,18 @@ trixie:
interruptible: true
image: 192.168.122.1:5000/sequoia-pgp/build-docker-image/trixie-prebuild:latest
script:
+ - apt-get update -yqq ; apt-get install tree mold elfutils -yqq
+ - $(echo "$CARGO/config.toml" ; cat $CARGO/config.toml ; echo "$CARGO_HOME/config.toml" ; cat $CARGO_HOME/config.toml ; echo "$HOME/.cargo/config.toml" ; cat $HOME/.cargo/config.toml) || true
+ - |
+ echo '[target.x86_64-unknown-linux-gnu]
+ linker = "/usr/bin/clang"
+ rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold"]' >> $CARGO_HOME/config.toml
+ - cat $CARGO_HOME/config.toml
- cargo run --manifest-path openpgp/Cargo.toml --no-default-features --features crypto-nettle,compression --example supported-algorithms
+ - tree $CARGO_TARGET_DIR | grep -E -v '\.o$|\.d$|\.sig$|\.rlib$|\.rmeta$'
- $MAKE_TOP test
+ - tree $CARGO_TARGET_DIR | grep -E -v '\.o$|\.d$|\.sig$|\.rlib$|\.rmeta$'
+ - readelf -p .comment $CARGO_TARGET_DIR | grep mold
- if ! git diff --quiet Cargo.lock ; then echo "Cargo.lock changed. Please add the change to the corresponding commit." ; git diff ; false ; fi
- if ! git diff --quiet ; then echo "The build changed the source. Please investigate." ; git diff ; fi
rules: