[libc-commits] [libc] [libc] temporarily set -Wno-shorten-64-to-32 (PR #77396)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Jan 8 16:19:39 PST 2024


https://github.com/nickdesaulniers updated https://github.com/llvm/llvm-project/pull/77396

>From 54de73d8a458bfb8b81986d08b32a8295c84d4bf Mon Sep 17 00:00:00 2001
From: Nick Desaulniers <ndesaulniers at google.com>
Date: Mon, 8 Jan 2024 16:15:12 -0800
Subject: [PATCH] [libc] temporarily set -Wno-shorten-64-to-32

This is still broken after #77350. Disable the warning for now, and fix
properly once the buildbot it back to green.

Link: https://github.com/llvm/llvm-project/issues/77395
---
 libc/src/sys/mman/linux/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libc/src/sys/mman/linux/CMakeLists.txt b/libc/src/sys/mman/linux/CMakeLists.txt
index 163e7dead8887a..08694ec48be397 100644
--- a/libc/src/sys/mman/linux/CMakeLists.txt
+++ b/libc/src/sys/mman/linux/CMakeLists.txt
@@ -22,6 +22,9 @@ add_entrypoint_object(
     libc.include.sys_syscall
     libc.src.__support.OSUtil.osutil
     libc.src.errno.errno
+  COMPILE_OPTIONS
+    # TODO: https://github.com/llvm/llvm-project/issues/77395
+    -Wno-shorten-64-to-32
 )
 
 add_entrypoint_object(



More information about the libc-commits mailing list