mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 13:12:22 +00:00
wscript: Use -O0 on debug
If we want debugging symbols, we most likely want them to point to the right place. With -O2, gdb or valgrind may give wrong information. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
parent
a796d24cf6
commit
ba84cad380
2
wscript
2
wscript
@ -4,7 +4,7 @@ from waflib.Build import BuildContext, CleanContext, \
|
|||||||
|
|
||||||
# Unix flags
|
# Unix flags
|
||||||
CFLAGS_UNIX = ["-O2", "-Wall", "-Wextra"]
|
CFLAGS_UNIX = ["-O2", "-Wall", "-Wextra"]
|
||||||
CFLAGS_UNIX_DBG = ['-g']
|
CFLAGS_UNIX_DBG = ['-g', '-O0']
|
||||||
|
|
||||||
# Windows MSVC flags
|
# Windows MSVC flags
|
||||||
CFLAGS_WIN32_COMMON = ['/TC', '/W4', '/WX', '/nologo', '/Zi']
|
CFLAGS_WIN32_COMMON = ['/TC', '/W4', '/WX', '/nologo', '/Zi']
|
||||||
|
Loading…
Reference in New Issue
Block a user