add -g args

This commit is contained in:
PyYoshi 2012-07-07 12:44:19 +09:00
parent 9a9bc05fb5
commit 8b4686ffd7

View file

@ -60,11 +60,16 @@ uchardet_sources = [
] ]
macros = [] macros = []
extra_compile_args = []
extra_link_args = []
if platform.system() == "Windows": if platform.system() == "Windows":
macros.append(("WIN32","1")) macros.append(("WIN32","1"))
if DEBUG: if DEBUG:
macros.append(("DEBUG_chardet","1")) macros.append(("DEBUG_chardet","1"))
extra_compile_args.append("-g"),
extra_link_args.append("-g"),
cchardet_module = Extension("cchardet._cchardet", cchardet_module = Extension("cchardet._cchardet",
sources = uchardet_sources+[cchardet_source], sources = uchardet_sources+[cchardet_source],