fix: remove dependcy on clang & mold

This was only added to try and improve compile times.

Re-measuring the difference after months of work and refactoring, the
gain from the additional requirements was marginal (39.8s -> 37.5s).

So, to simplify the requirement, clang and mold have been removed.

Closes: kemitix/git-next#131
This commit is contained in:
Paul Campbell 2024-08-04 20:41:38 +01:00
parent 9a1756bf6c
commit 281c07c849
3 changed files with 1 additions and 17 deletions

View file

@ -1,11 +1,4 @@
# ./cargo/config.toml # ./cargo/config.toml
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang-16"
rustflags = [
"-C",
"link-arg=--ld-path=/usr/bin/mold",
]
[profile.dev] [profile.dev]
debug = 0 debug = 0
strip = "debuginfo" strip = "debuginfo"

View file

@ -1,7 +1,7 @@
FROM docker.io/rust:1.80.0-bookworm FROM docker.io/rust:1.80.0-bookworm
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y clang-16 mold libdbus-1-dev && \ apt-get install -y libdbus-1-dev && \
curl -L https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \ curl -L https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz -o cargo-binstall.tgz && \
tar -xzf cargo-binstall.tgz && \ tar -xzf cargo-binstall.tgz && \
rm cargo-binstall.tgz && \ rm cargo-binstall.tgz && \
@ -15,8 +15,6 @@ RUN cargo chef --version
RUN rustfmt --version RUN rustfmt --version
RUN cargo fmt --version RUN cargo fmt --version
RUN cargo clippy --version RUN cargo clippy --version
RUN mold --version
RUN clang-16 --version
RUN cargo --version RUN cargo --version
RUN rustc --version RUN rustc --version
RUN rustup --version RUN rustup --version

View file

@ -32,13 +32,6 @@ See [Behaviour](#behaviour) to learn how we do this.
- libdbus-1-dev (ubuntu/debian) - libdbus-1-dev (ubuntu/debian)
- dbus-devel (fedora) - dbus-devel (fedora)
### x86_64-unknown-linux-gnu
Additionally for this platform, to improved compilation times:
- clang-16
- mold
See `.cargo/config.toml` for how they are configured. See `.cargo/config.toml` for how they are configured.
## Installation ## Installation