Skip to content

Commit

Permalink
depends: add mold & ld.lld to gen_id
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fanquake committed Jan 10, 2025
1 parent d032ac8 commit 01df180
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions depends/gen_id
Original file line number Diff line number Diff line change
Expand Up @@ -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_'
Expand Down

0 comments on commit 01df180

Please sign in to comment.