This repository contains Bazel targets for version 6.3.0 of the GNU Multiple Precision Arithmetic Library. To use, add the following to your MODULE.bazel file:
bazel_dep(name = "phst_gmp", version = "0")
git_override(
module_name = "phst_gmp",
commit = "b0469369799af64bfd53df2ec61fee5ab0b1a0c0",
remote = "https://github.com/phst/gmp.git",
)
Then you can use the
cc_library
targets @phst_gmp//:gmp
and @phst_gmp//:gmpxx
to use the C and C++ bindings
of GNU MP, respectively.
This repository relies on
rules_foreign_cc
. It
should work fine on recent versions of GNU/Linux or macOS, but Windows isn’t
supported at this point. It includes workarounds for the rules_foreign_cc
bugs 185 and
296.
This is not an officially supported Google product.