From ba84cad38079b93e167175230f653a7b1133c11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 31 Mar 2011 15:02:23 +0200 Subject: [PATCH] wscript: Use -O0 on debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index f3082aec7..dd9040658 100644 --- a/wscript +++ b/wscript @@ -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']