mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 11:38:49 -07:00
add werror flags when making a debug build using llvm (#4344)
* add werror flags when making a debug build using llvm this would get bugs like https://github.com/Cockatrice/Cockatrice/pull/4337 get signalled earlier to us * fix error: 'Servatrice_DatabaseInterface::registerUser' hides overloaded virtual function * remove unused field * mac machines have 3 cores see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources * typo
This commit is contained in:
parent
b858e36183
commit
da9222929b
6 changed files with 9 additions and 7 deletions
|
|
@ -134,7 +134,11 @@ ELSEIF (CMAKE_COMPILER_IS_GNUCXX)
|
|||
ELSE()
|
||||
# other: osx/llvm, bsd/llvm
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
|
||||
if(WARNING_AS_ERROR)
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wextra -Werror")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wextra")
|
||||
endif()
|
||||
ENDIF()
|
||||
|
||||
# GNU systems need to define the Mersenne exponent for the RNG to compile w/o warning
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue