fix: players play time got replaced with bots play time.

fix: crlib: fixed clang-analyzer warnings.
build: removed predefined optimization flags in debug builds.
This commit is contained in:
ds 2020-10-03 16:39:09 +03:00
commit f40ca59700
11 changed files with 44 additions and 24 deletions

View file

@ -45,7 +45,7 @@ buildVersion = meson.project_version ()
compilerId = buildCompiler.get_id ()
compilerVersion = buildCompiler.version ()
isOptimize = get_option ('buildtype') == 'release'
isOptimize = get_option ('buildtype') == 'release' or get_option ('buildtype') == 'debugoptimized'
isVC = compilerId == 'msvc' or compilerId == 'intel-cl' or compilerId == 'clang-cl'
isGCC = compilerId == 'gcc'
isIntel = compilerId == 'intel' or compilerId == 'intel-cl'
@ -82,7 +82,11 @@ if isCLang or isGCC or (isIntel and not isWindows)
'-m32',
'-fno-threadsafe-statics',
'-fno-exceptions',
'-fno-rtti',
'-fno-rtti'
]
flagsCompiler += [
'-pedantic'
]
if isOptimize
@ -132,7 +136,6 @@ if isLinux or isDarwin
flagsCompiler += [
'-g3',
'-ggdb',
'-O3',
'-DCR_DEBUG'
]
else