mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-23 03:26:05 +00:00

This patch adds bazel tests for llvm-libc. Some math tests rely on the `mpfr` library. This is controlled via the `--@llvm-project//libc:libc_math_mpfr` flag. It can take three values: - `external` (default) will build `mpfr` and `gmp` from source. - `system` will use the system installed `mpfr` library. - `disable` will skip tests relying on `mpfr`. Reviewed By: sivachandra, GMNGeoffrey Differential Revision: https://reviews.llvm.org/D119547
21 lines
611 B
Plaintext
21 lines
611 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 = "gmp",
|
|
configure_options = ["--with-pic"],
|
|
copts = ["-w"],
|
|
lib_name = "libgmp",
|
|
lib_source = ":sources",
|
|
toolchain = "@rules_foreign_cc//toolchains:preinstalled_autoconf_toolchain",
|
|
visibility = ["//visibility:public"],
|
|
)
|