diff options
author | Carlos Martín Nieto <cmn@elego.de> | 2011-03-31 15:02:23 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@elego.de> | 2011-03-31 15:02:24 +0200 |
commit | ba84cad38079b93e167175230f653a7b1133c11f (patch) | |
tree | 6d02a3cec60dc4354055b29231d82f54196aed2a | |
parent | a796d24cf697b0b51aa0ca7ef887e980f0d9fb7a (diff) | |
download | libgit2-ba84cad38079b93e167175230f653a7b1133c11f.tar.gz |
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>
-rw-r--r-- | wscript | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ from waflib.Build import BuildContext, CleanContext, \ # Unix flags CFLAGS_UNIX = ["-O2", "-Wall", "-Wextra"] -CFLAGS_UNIX_DBG = ['-g'] +CFLAGS_UNIX_DBG = ['-g', '-O0'] # Windows MSVC flags CFLAGS_WIN32_COMMON = ['/TC', '/W4', '/WX', '/nologo', '/Zi'] |