rules_m4
rules_m4 copied to clipboard
Bazel build rules for GNU M4
I am using bazel 7.1.1. I am trying to use an external repo for GMP (GNU multiprecision) with bazel. I cloned this repo: cd ~/dev git clone https://github.com/robin-thomas/bazelify-gmp.git When I...
Example error: ``` ERROR: While resolving configuation keys for @m4_v1.4.18//gnulib:gnulib: no such target '@bazel_tools//src/conditions:openbsd': target 'openbsd' not declared in package 'src/conditions' (did you mean 'freebsd'?) defined by /github/home/.cache/bazel/_bazel_root/96335d2574d677ca0e31aa2073ba4534/external/bazel_tools/src/conditions/BUILD ``` Work...
As discussed in https://github.com/jmillikin/rules_m4/issues/9 -- that build failure was fixed with a patch to the gnulib build, but adding GNU m4 v1.4.19 should still be done at some point.
It looks like `select({"@bazel_tools//src/conditions:windows_msvc":` doesn't work, and it's always falling through to the default case. This causes problems when updating gnulib, because without `/we4013` MSVC will silently accept calls to...
Hey, thanks a lot for `rules_m4`. It works perfectly! One thing that I think is missing is the ability to add extra files to expansion: ```starlark m4( name = "foo",...