[llvm] [libc][bazel] Fix missing dependencies for `lseek` (PR #65618)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 14:10:09 PDT 2023


michaelrj-google wrote:

Bazel is considered a secondary build system for libc. We use the Bazel files at Google but they don't support all of the functions, features, and modes that the cmake files do. 

You really only need to worry about Bazel when you're adding a new dependency to a file. Bazel is a lot more strict about includes than cmake.

Generally to test the bazel I use the following command from the folder `llvm-project/utils/bazel`:

`bazel query @llvm-project//libc/... | xargs bazel test --config=generic_clang --test_output=errors --test_tag_filters=-nobuildkite --build_tag_filters=-nobuildkite -- at llvm-project//libc:mpfr=system`

I have that as part of my test script that I use to run all the tests before I land.

https://github.com/llvm/llvm-project/pull/65618


More information about the llvm-commits mailing list