mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 02:56:30 +00:00

This involved a little bit of yak shaving because one of the new tests depends on MPC, and we didn't have targets for it yet, so I ended up needing to add a similar setup to what we have for MPFR.
34 lines
856 B
Plaintext
34 lines
856 B
Plaintext
# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
|
|
# See https://llvm.org/LICENSE.txt for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make_variant")
|
|
|
|
filegroup(
|
|
name = "sources",
|
|
srcs = glob(["**"]),
|
|
)
|
|
|
|
configure_make_variant(
|
|
name = "mpc",
|
|
configure_options = ["--with-pic"],
|
|
copts = ["-w"],
|
|
lib_name = "libmpc",
|
|
lib_source = ":sources",
|
|
toolchain = "@rules_foreign_cc//toolchains:preinstalled_autoconf_toolchain",
|
|
visibility = ["//visibility:public"],
|
|
deps = ["@mpfr//:mpfr_"],
|
|
)
|
|
|
|
alias(
|
|
name = "mpc_external",
|
|
actual = "@mpc//:mpc_",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "mpc_system",
|
|
linkopts = ["-lmpc"],
|
|
visibility = ["//visibility:public"],
|
|
)
|