[libc-commits] [libc] [libc] Use global errno for baremetal (PR #98130)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 9 01:40:43 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 93869dfd89387844bf8b605ebcd1abc0cc81bde8 047964ad4b6d2e1d7b4c3aad43bf2112213adccf -- libc/src/errno/libc_errno.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/errno/libc_errno.cpp b/libc/src/errno/libc_errno.cpp
index b8d4bfb0c8..f910a2e605 100644
--- a/libc/src/errno/libc_errno.cpp
+++ b/libc/src/errno/libc_errno.cpp
@@ -9,8 +9,8 @@
#include "libc_errno.h"
#include "src/__support/CPP/atomic.h"
-#if defined(LIBC_TARGET_ARCH_IS_GPU) || \
- (defined(__ELF__) && !defined(__linux__) && defined(__Fuchsia__))
+#if defined(LIBC_TARGET_ARCH_IS_GPU) || \
+ (defined(__ELF__) && !defined(__linux__) && defined(__Fuchsia__))
// LIBC_THREAD_LOCAL on GPU currently does nothing. So essentially this is just
// a global errno for gpu to use for now.
extern "C" {
``````````
</details>
https://github.com/llvm/llvm-project/pull/98130
More information about the libc-commits
mailing list