[libc-commits] [libc] [llvm] [libc] Files now flush on exit (PR #230215)
via libc-commits
libc-commits at lists.llvm.org
Mon Oct 12 11:57:27 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {cmake-format}-->
:warning: CMake code formatter, cmake-format found issues in your code. :warning:
<details>
<summary>
You can fix this locally with the following command:
</summary>
``````````bash
python3 libc/utils/cmake_format.py -i libc/src/stdio/CMakeLists.txt libc/src/stdio/baremetal/CMakeLists.txt libc/src/stdio/generic/CMakeLists.txt libc/src/stdio/gpu/CMakeLists.txt libc/src/stdlib/CMakeLists.txt libc/test/src/stdlib/CMakeLists.txt
``````````
You can also preview the formatting diff without modifying files:
``````````bash
python3 libc/utils/cmake_format.py --dry-run --diff libc/src/stdio/CMakeLists.txt libc/src/stdio/baremetal/CMakeLists.txt libc/src/stdio/generic/CMakeLists.txt libc/src/stdio/gpu/CMakeLists.txt libc/src/stdlib/CMakeLists.txt libc/test/src/stdlib/CMakeLists.txt
``````````
</details>
<details>
<summary>
View the diff from cmake-format here.
</summary>
``````````diff
--- a/libc/src/stdio/generic/CMakeLists.txt
+++ b/libc/src/stdio/generic/CMakeLists.txt
@@ -96,11 +96,11 @@
# since this isn't an entrypoint we need to do these checks manually.
if(NOT TARGET libc.src.stdio.${LIBC_TARGET_OS}.fflush_internal AND
- TARGET libc.src.__support.File.file AND
- TARGET libc.src.__support.File.platform_file AND
- "libc.src.stdio.stdin" IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS AND
- "libc.src.stdio.stdout" IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS AND
- "libc.src.stdio.stderr" IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS)
+ TARGET libc.src.__support.File.file AND
+ TARGET libc.src.__support.File.platform_file AND
+ "libc.src.stdio.stdin" IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS AND
+ "libc.src.stdio.stdout" IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS AND
+ "libc.src.stdio.stderr" IN_LIST TARGET_LLVMLIBC_ENTRYPOINTS)
add_object_library(
fflush_internal
SRCS
``````````
</details>
https://github.com/llvm/llvm-project/pull/230215
More information about the libc-commits
mailing list