[libc-commits] [libc] [libc] Add printf error handling (with fixes #2) (PR #166517)
via libc-commits
libc-commits at lists.llvm.org
Wed Nov 5 08:52:16 PST 2025
================
@@ -83,13 +83,16 @@ TEST(LlvmLibcFPrintfTest, WriteToFile) {
written =
LIBC_NAMESPACE::fprintf(file, "Writing to a read only file should fail.");
EXPECT_LT(written, 0);
+#if !defined(__AMDGPU__) && !defined(__NVPTX__)
----------------
lntue wrote:
So far, GPU targets do not support errno. Can you find all `ASSERT_ERRNO_FAILURE` definition and define them as no-op when `LIBC_TARGET_ARCHITECTURE_IS_GPU` is defined.
https://github.com/llvm/llvm-project/pull/166517
More information about the libc-commits
mailing list