Skip to content

Commit

Permalink
cmake: fix another MSVC complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Aug 10, 2024
1 parent 549a27e commit a1fa5d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/ToywasmConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,13 @@ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fomit-frame-pointer")
#set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Xclang -fmerge-functions")
#set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mllvm -mergefunc-use-aliases")

if (NOT CMAKE_BUILD_TYPE MATCHES "Debug")
if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
if(CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL GNU)
# Note: Release build disables assertions and thus yields a lot of
# used variables. We are not interested in fixing them.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-variable -Wno-return-type")
endif()
endif()

if(CMAKE_C_COMPILER_ID MATCHES "Clang")
# https://clang.llvm.org/docs/ThreadSafetyAnalysis.html
Expand Down

0 comments on commit a1fa5d4

Please sign in to comment.