Skip to content

Commit

Permalink
Add -Wno-pre-c11-compat only for browser
Browse files Browse the repository at this point in the history
  • Loading branch information
radekdoulik committed Jun 3, 2024
1 parent 6cde92a commit 1721779
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/native/libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ if (CLR_CMAKE_TARGET_UNIX OR CLR_CMAKE_TARGET_BROWSER OR CLR_CMAKE_TARGET_WASI)
endif ()

set(CMAKE_INSTALL_PREFIX $ENV{__CMakeBinDir})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wno-declaration-after-statement -Wno-pre-c11-compat")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wno-declaration-after-statement")

if (CLR_CMAKE_TARGET_BROWSER)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pre-c11-compat")
endif()

add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/Common)
add_compile_options(-I${CMAKE_CURRENT_BINARY_DIR}/Common)
Expand Down

0 comments on commit 1721779

Please sign in to comment.