[libc-commits] [libc] [libc] Enable 'mktime' for the GPU (PR #133437)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Mar 28 05:37:02 PDT 2025


https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/133437

Summary:
This is a dependency on `strftime` which we provide, so we should have
this.


>From 71ddee82f15c90f09c8bfb6b2425947da19372e2 Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Fri, 28 Mar 2025 07:35:36 -0500
Subject: [PATCH] [libc] Enable 'mktime' for the GPU

Summary:
This is a dependency on `strftime` which we provide, so we should have
this.
---
 libc/config/gpu/amdgpu/entrypoints.txt | 1 +
 libc/config/gpu/nvptx/entrypoints.txt  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libc/config/gpu/amdgpu/entrypoints.txt b/libc/config/gpu/amdgpu/entrypoints.txt
index a5d32c8eda39f..a5f8f82078f42 100644
--- a/libc/config/gpu/amdgpu/entrypoints.txt
+++ b/libc/config/gpu/amdgpu/entrypoints.txt
@@ -261,6 +261,7 @@ set(TARGET_LIBC_ENTRYPOINTS
     libc.src.time.nanosleep
     libc.src.time.strftime
     libc.src.time.strftime_l
+    libc.src.time.mktime
 
     # wchar.h entrypoints
     libc.src.wchar.wcslen
diff --git a/libc/config/gpu/nvptx/entrypoints.txt b/libc/config/gpu/nvptx/entrypoints.txt
index f553f7cc2b210..7292ca3d6efca 100644
--- a/libc/config/gpu/nvptx/entrypoints.txt
+++ b/libc/config/gpu/nvptx/entrypoints.txt
@@ -261,6 +261,7 @@ set(TARGET_LIBC_ENTRYPOINTS
     libc.src.time.nanosleep
     libc.src.time.strftime
     libc.src.time.strftime_l
+    libc.src.time.mktime
 
     # wchar.h entrypoints
     libc.src.wchar.wcslen



More information about the libc-commits mailing list