From 27f2777cc67accdab4063a3de5ca2b8441e177e5 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 2 Jan 2025 22:19:49 -0800 Subject: [PATCH] Fix aarch64 build --- libc/runtime/clone.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/runtime/clone.c b/libc/runtime/clone.c index 1cc0e3f24..c2325896e 100644 --- a/libc/runtime/clone.c +++ b/libc/runtime/clone.c @@ -538,7 +538,9 @@ int sys_clone_linux(int flags, // rdi dontinstrument static int AmdLinuxThreadEntry(void *arg) { struct LinuxCloneArgs *wt = arg; +#if defined(__x86_64__) sys_set_tls(ARCH_SET_GS, wt->tls); +#endif return wt->func(wt->arg); }