[libc-commits] [libc] [libc] Additional check for File support in scanf_core (PR #128079)
via libc-commits
libc-commits at lists.llvm.org
Thu Feb 20 14:17:11 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Caslyn Tonelli (Caslyn)
<details>
<summary>Changes</summary>
This adds a check for `TARGET libc.src.__support.File.file` before appending ` libc.src.__support.File.file` to file_deps.
---
Full diff: https://github.com/llvm/llvm-project/pull/128079.diff
1 Files Affected:
- (modified) libc/src/stdio/scanf_core/CMakeLists.txt (+1-1)
``````````diff
diff --git a/libc/src/stdio/scanf_core/CMakeLists.txt b/libc/src/stdio/scanf_core/CMakeLists.txt
index ce639fe65a106..813f4213d160a 100644
--- a/libc/src/stdio/scanf_core/CMakeLists.txt
+++ b/libc/src/stdio/scanf_core/CMakeLists.txt
@@ -16,7 +16,7 @@ if(LIBC_TARGET_OS_IS_GPU)
libc.src.stdio.ungetc
libc.src.stdio.ferror
)
-elseif(LLVM_LIBC_FULL_BUILD)
+elseif(TARGET libc.src.__support.File.file AND LLVM_LIBC_FULL_BUILD)
list(APPEND file_deps
libc.src.__support.File.file
)
``````````
</details>
https://github.com/llvm/llvm-project/pull/128079
More information about the libc-commits
mailing list