-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc][bazel] Add BUILD targets for complex functions and tests. (#12…
…9618) 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.
- Loading branch information
Showing
8 changed files
with
506 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//===-- MPCUtils.h ----------------------------------------------*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_LIBC_UTILS_MPCWRAPPER_MPC_INC_H | ||
#define LLVM_LIBC_UTILS_MPCWRAPPER_MPC_INC_H | ||
|
||
#ifdef CUSTOM_MPC_INCLUDER | ||
// Some downstream repos are monoliths carrying MPC sources in their third | ||
// party directory. In such repos, including the MPC header as | ||
// `#include <mpc.h>` is either disallowed or not possible. If that is the | ||
// case, a file named `CustomMPCIncluder.h` should be added through which the | ||
// MPC header can be included in manner allowed in that repo. | ||
#include "CustomMPCIncluder.h" | ||
#else | ||
#include <mpc.h> | ||
#endif | ||
|
||
#endif // LLVM_LIBC_UTILS_MPCWRAPPER_MPC_INC_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.