Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
fpta: always use -Werror if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
erthink committed Feb 3, 2022
1 parent 30566a9 commit c68b92f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion externals/libfptu/src/erthink/cmake/compiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ macro(setup_compile_flags)

# Only add -Werror if it's a debug build, done by developers.
# Release builds should not cause extra trouble.
if(CC_HAS_WERROR AND (CI OR CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Debug"))
if(CC_HAS_WERROR)
if(MSVC)
add_compile_flags("C;CXX" "/WX")
elseif(CMAKE_COMPILER_IS_CLANG)
Expand Down
2 changes: 1 addition & 1 deletion externals/libmdbx/cmake/compiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ macro(setup_compile_flags)

# Only add -Werror if it's a debug build, done by developers.
# Release builds should not cause extra trouble.
if(CC_HAS_WERROR AND (CI OR CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE STREQUAL "Debug"))
if(CC_HAS_WERROR)
if(MSVC)
add_compile_flags("C;CXX" "/WX")
elseif(CMAKE_COMPILER_IS_CLANG)
Expand Down

0 comments on commit c68b92f

Please sign in to comment.