[libcxx-commits] [libcxx] [libcxx] Set `_LIBCPP_HAS_CLOCK_GETTIME` for GPU targets (PR #99243)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 16 15:18:25 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 8393ea5d1dd8e8b56a87a6edbca31fb8722cee48 b15d7edb1db33cfdb4939f7dca3209b26c1c4cdb --extensions ,cpp -- libcxx/include/__config libcxx/src/chrono.cpp libcxx/src/filesystem/filesystem_clock.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 2a45077cdf..473ad2b897 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1226,7 +1226,7 @@ typedef __char32_t char32_t;
// Clang supports targeting GPU architectures.
# if (defined(__AMDGPU__) || defined(__NVPTX__)) && defined(_LIBCPP_COMPILER_CLANG_BASED)
# define _LIBCPP_TARGETING_GPU
-#endif
+# endif
#endif // __cplusplus
``````````
</details>
https://github.com/llvm/llvm-project/pull/99243
More information about the libcxx-commits
mailing list