Skip to content

Commit

Permalink
fix(build): disable cast-function-type and pedantic warnings for …
Browse files Browse the repository at this point in the history
…MinGW
  • Loading branch information
lmichaelis committed Apr 30, 2024
1 parent 18a5e7c commit d5ca0ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/BuildSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function(bs_select_cflags SANITIZERS COMPILE LINK)
endif()

if (MINGW)
list(APPEND _INTERNAL_COMPILE_FLAGS "-static")
list(APPEND _INTERNAL_LINK_FLAGS "-static")
list(APPEND _INTERNAL_COMPILE_FLAGS "-Wno-cast-function-type -Wno-pedantic -static")
list(APPEND _INTERNAL_LINK_FLAGS "-Wno-cast-function-type -Wno-pedantic -static")
endif()

# return _INTERNAL_COMPILE_FLAGS, _INTERNAL_LINK_FLAGS;
Expand Down

0 comments on commit d5ca0ae

Please sign in to comment.