mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 04:58:13 +00:00
The toolchain embeds the assumption that `clang` and `llvm-ar` are adjacent, which may not be true on all host platforms. Moreover, in #1842 and #1843, we test if Homebrow LLVM is in `PATH` by checking that `llvm-ar` is adjacent to `clang` and if it isn't, we `fail()` the build, even if `llvm-ar` *is* in `PATH`. Instead, actually check `PATH` with `repository_ctx.which`. This however necessitates the assumption that `llvm-ar` and other LLVM binutils are adjacent, and subsequently that `clang` and `ld.lld` are adjacent. It appears that we don't seem to always be using these tools, but we should avoid embedding wrong assumptions regardless. Update docs to reflect this change.