Skip to content

Commit 01df180

Browse files
committed
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.
1 parent d032ac8 commit 01df180

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

depends/gen_id

+11
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@
5858
echo "CXX_STANDARD=${CXX_STANDARD}"
5959
echo "END CXX"
6060

61+
# We use lld when cross-compiling for macOS, and it's version should
62+
# be tied to LLVM. However someone compiling with GCC and -fuse-ld=lld
63+
# would not see a cache bust if the LLVM toolchain was updated.
64+
echo "BEGIN lld"
65+
bash -c "ld.lld --version"
66+
echo "END lld"
67+
68+
echo "BEGIN mold"
69+
bash -c "mold --version"
70+
echo "END mold"
71+
6172
echo "BEGIN AR"
6273
bash -c "${AR} --version"
6374
env | grep '^AR_'

0 commit comments

Comments
 (0)