[PATCH] D119547: [libc][bazel] Add tests to the bazel build

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 07:17:28 PST 2022


gchatelet marked an inline comment as done.
gchatelet added a comment.
Herald added a project: All.

@GMNGeoffrey I'm having an issue that you may know how to solve.
.bazelrc <https://github.com/llvm/llvm-project/blob/7c385c4b2f653d6853fe4601f02bbc7fcd60cd91/utils/bazel/.bazelrc#L37-L38> automatically appends `-Wall -Werror` to everything that is built.

- Math tests depend on `mpfr`,
- `mpfr` (and `gmp`) are built from source using `rules_foreign_cc`,
- For hermeticity `rules_foreign_cc` compiles `make`

I could tweak the `./configure` options for `mpfr` and `gmp` and explicitly disable `-Werror` (see file "mpfr.BUILD" and "gmp.BUILD") but I cannot tweak the compile options for when `rules_foreign_cc` compiles `make`.
I could work around this by preventing `rules_foreign_cc` to compiles `make` in the first place, but then the build is not hermetic anymore...

  register_built_tools = False,
  register_default_tools = False,

What do you think? Is `.bazelrc` too strict? Is there a clean way to work around this without lowering the error level?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119547/new/

https://reviews.llvm.org/D119547



More information about the llvm-commits mailing list