Skip to content

Commit 36d6b63

Browse files
committed
[libc][NFC] Silence C99 extension warnings on clang for RPC
Summary: This only shows up during the build of the server, silence it.
1 parent 5dccfd9 commit 36d6b63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc/utils/gpu/server/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ target_include_directories(llvmlibc_rpc_server PUBLIC ${CMAKE_CURRENT_SOURCE_DIR
1111

1212
# Ignore unsupported clang attributes if we're using GCC.
1313
target_compile_options(llvmlibc_rpc_server PUBLIC
14+
$<$<CXX_COMPILER_ID:Clang>:-Wno-c99-extensions>
1415
$<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>)
1516
target_compile_definitions(llvmlibc_rpc_server PUBLIC
1617
LIBC_COPT_USE_C_ASSERT

0 commit comments

Comments
 (0)