depends: add mold & ld.lld to gen_id

We use `lld` when cross-compiling for macOS, and it's version should
be tied to LLVM. However someone compiling with GCC and `-fuse-ld=lld`
would not see a cache bust if the LLVM toolchain was updated.

We don't use `mold` directly, but I'm aware of it's usage in
infrastructure, along with depends, used to test the project.
This commit is contained in:
fanquake 2024-10-23 17:03:32 +01:00
parent d032ac8063
commit 01df180bfb
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -58,6 +58,17 @@
echo "CXX_STANDARD=${CXX_STANDARD}"
echo "END CXX"
# We use lld when cross-compiling for macOS, and it's version should
# be tied to LLVM. However someone compiling with GCC and -fuse-ld=lld
# would not see a cache bust if the LLVM toolchain was updated.
echo "BEGIN lld"
bash -c "ld.lld --version"
echo "END lld"
echo "BEGIN mold"
bash -c "mold --version"
echo "END mold"
echo "BEGIN AR"
bash -c "${AR} --version"
env | grep '^AR_'