Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Native/Unix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,15 @@ include(configure.cmake)
if (HAVE_WNO_ALLOCA)
add_compile_options(-Wno-alloca)
endif()
if (HAVE_WNO_CAST_FUNCTION_TYPE)
add_compile_options(-Wno-cast-function-type)
endif()
if (HAVE_WNO_IMPLICIT_INT_FLOAT_CONVERSION)
add_compile_options(-Wno-implicit-int-float-conversion)
endif()
if (HAVE_WNO_RESERVED_IDENTIFIER)
add_compile_options(-Wno-reserved-identifier)
endif()

if (NOT CLR_CMAKE_PLATFORM_WASM)
add_subdirectory(System.IO.Compression.Native)
Expand Down
2 changes: 2 additions & 0 deletions src/Native/Unix/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ set(CMAKE_REQUIRED_FLAGS "-Werror -Wno-error=unused-value")

check_c_compiler_flag(-Wno-alloca HAVE_WNO_ALLOCA)
check_c_compiler_flag(-Wno-implicit-int-float-conversion HAVE_WNO_IMPLICIT_INT_FLOAT_CONVERSION)
check_c_compiler_flag(-Wno-reserved-identifier HAVE_WNO_RESERVED_IDENTIFIER)
check_c_compiler_flag(-Wno-cast-function-type HAVE_WNO_CAST_FUNCTION_TYPE)

# in_pktinfo: Find whether this struct exists
check_include_files(
Expand Down