diff options
author | Tue Ly <lntue@google.com> | 2023-02-03 11:41:22 -0500 |
---|---|---|
committer | Tue Ly <lntue@google.com> | 2023-02-03 15:11:20 -0500 |
commit | 1ad8d9d66d11018d4db71e3a7f6a260659ff39b3 (patch) | |
tree | dc8bd8c738502c9883e739b2417589e57a27b862 /libc/docs | |
parent | 7e528d4689e600fd342677edf23231dc557187b3 (diff) | |
download | llvm-1ad8d9d66d11018d4db71e3a7f6a260659ff39b3.tar.gz |
[libc][bazel] Add bazel targets and unit tests for math functions.
Add bazel targets and unit tests for single precision exponential,
logarithm, trigonometric, inverse trig, hyperbolic, and inverse hyperbolic
functions.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D143275
Diffstat (limited to 'libc/docs')
-rw-r--r-- | libc/docs/build_and_test.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/docs/build_and_test.rst b/libc/docs/build_and_test.rst index 22557001568b..1571dded9667 100644 --- a/libc/docs/build_and_test.rst +++ b/libc/docs/build_and_test.rst @@ -62,3 +62,20 @@ and put the following in your settings.json file: "LIBC_INCLUDE_DOCS" : true } } + +Building with Bazel +=================== + +#. To build with Bazel, use the following command: + + .. code-block:: sh + + $> bazel build --config=generic_clang @llvm-project//libc/... + +#. To run the unit tests with bazel, use the following command: + + .. code-block:: sh + + $> bazel test --config=generic_clang @llvm-project//libc/... + +#. The bazel target layout of `libc` is located at: `utils/bazel/llvm-project-overlay/libc/BUILD.bazel <https://github.com/llvm/llvm-project/tree/main/utils/bazel/llvm-project-overlay/libc/BUILD.bazel>`_. |