rules_bison
rules_bison copied to clipboard
Bazel build rules for GNU Bison
Verified SHA1 matched https://lists.libreplanet.org/archive/html/bug-bison/2021-09/msg00056.html This is much more complicated than just building a new Bison because the Bazel build process fetches a tarball of an old gnulib, which does not...
I'd like to update to a more recent version of Bison (3.8 or later.) I've made a small attempt to update them myself [here](https://github.com/kkiningh/rules_bison), but this fails with errors related...
https://github.com/jmillikin/rules_bison/blob/85e9bab3028aa26efbdafcba01ca8902c93c367d/bison/bison.bzl#L70 I have a bison ypp that uses both %defines and %locations, thus these files should be generated per https://www.gnu.org/software/bison/manual/html_node/C_002b_002b-Bison-Interface.html. Have you thought about how to handle these files? Otherwise,...
For this change I assumed there was a reason these sources were not passed directly vs being in a glob and opted to simply allow files to be missing.
Reproducible by running `bazel build //tests:hello_c` on the following platforms: ## [Windows](https://buildkite.com/bazel/github-dot-com-jmillikin-rules-bison/builds/1798#01910f26-8a76-4ac5-9678-f42f2024dea4) ``` (18:14:52) ERROR: C:/b/bk-windows-0n2b/bazel/github-dot-com-jmillikin-rules-bison/tests/BUILD:27:17: Linking tests/hello_c.dll failed: (Exit 1120): link.exe failed: error executing CppLink command (from target //tests:hello_c)...
gnulib needs the same fix as in rules_m4. E.g. https://github.com/jmillikin/rules_m4/blob/trunk/m4/internal/gnulib/gnulib.bzl#L130
Bazel CI is migrating all CentOS 7 jobs to Rocky Linux 8 since the former has been EOL for almost a year now and will be removed from CI soon....
A parser that is generated with the Bison C parser API might actually be written in C++, and therefore needs to be emitted in a `*.cc` source file. There is...
The `bison_cc_library` rule is missing attributes that exist on [`cc_library`](https://bazel.build/reference/be/c-cpp#cc_library): * `implementation_deps` for non-transitive header dependencies * `defines`, `local_defines `, `linkopts`, etc for adjusting the C/C++ compilation and linking contexts...