[libc-commits] [libc] 36d6b63 - [libc][NFC] Silence C99 extension warnings on clang for RPC

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Feb 3 14:17:37 PST 2025


Author: Joseph Huber
Date: 2025-02-03T16:16:18-06:00
New Revision: 36d6b63f85a0d2cb149fa060cf308be3b5ea9f14

URL: https://github.com/llvm/llvm-project/commit/36d6b63f85a0d2cb149fa060cf308be3b5ea9f14
DIFF: https://github.com/llvm/llvm-project/commit/36d6b63f85a0d2cb149fa060cf308be3b5ea9f14.diff

LOG: [libc][NFC] Silence C99 extension warnings on clang for RPC

Summary:
This only shows up during the build of the server, silence it.

Added: 
    

Modified: 
    libc/utils/gpu/server/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/utils/gpu/server/CMakeLists.txt b/libc/utils/gpu/server/CMakeLists.txt
index a109d603318b6b..ae8a0d902f4598 100644
--- a/libc/utils/gpu/server/CMakeLists.txt
+++ b/libc/utils/gpu/server/CMakeLists.txt
@@ -11,6 +11,7 @@ target_include_directories(llvmlibc_rpc_server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR
 
 # Ignore unsupported clang attributes if we're using GCC.
 target_compile_options(llvmlibc_rpc_server PUBLIC
+                       $<$<CXX_COMPILER_ID:Clang>:-Wno-c99-extensions>
                        $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>)
 target_compile_definitions(llvmlibc_rpc_server PUBLIC
                            LIBC_COPT_USE_C_ASSERT


        


More information about the libc-commits mailing list