Skip to content

Commit 68112f0

Browse files
libc: fixup include path and bazel stale comments (#118510)
Downstream builders are having issues with this local include. Use a fuller path that's more standard throughout the codebase. Also some of the comments in the bazel overlay are stale. Remove them. Reported-by: Brooks Moses <[email protected]>
1 parent 1f20eee commit 68112f0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

libc/src/__support/OSUtil/linux/exit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#include "src/__support/OSUtil/linux/syscall.h" // syscall_impl
910
#include "src/__support/common.h"
1011
#include "src/__support/macros/config.h"
11-
#include "syscall.h" // For internal syscall function.
1212
#include <sys/syscall.h> // For syscall numbers.
1313

1414
namespace LIBC_NAMESPACE_DECL {

utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def libc_function(
7474
for.
7575
srcs: The .cpp files which contain the function implementation.
7676
weak: Make the symbol corresponding to the libc function "weak".
77-
deps: The list of target dependencies if any.
7877
copts: The list of options to add to the C++ compilation command.
7978
local_defines: The preprocessor defines which will be prepended with -D
8079
and passed to the compile command of this target but not
@@ -138,9 +137,6 @@ def libc_math_function(
138137
139138
Args:
140139
name: The name of the function.
141-
specializations: List of machine specializations available for this
142-
function. Possible specializations are "generic",
143-
"aarch64" and "x86_64".
144140
additional_deps: Other deps like helper cc_library targes used by the
145141
math function.
146142
"""

0 commit comments

Comments
 (0)