xref: /llvm-project/utils/bazel/third_party_build/gmp.BUILD (revision d856e5feacd56e01e713323e534c8dba52766b73)
1# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2# See https://llvm.org/LICENSE.txt for license information.
3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make_variant")
6
7filegroup(
8    name = "sources",
9    srcs = glob(["**"]),
10)
11
12configure_make_variant(
13    name = "gmp",
14    configure_options = ["--with-pic"],
15    copts = ["-w"],
16    lib_name = "libgmp",
17    lib_source = ":sources",
18    toolchain = "@rules_foreign_cc//toolchains:preinstalled_autoconf_toolchain",
19    visibility = ["//visibility:public"],
20)
21