add -g args
This commit is contained in:
parent
9a9bc05fb5
commit
8b4686ffd7
1 changed files with 5 additions and 0 deletions
5
setup.py
5
setup.py
|
@ -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],
|
||||||
|
|
Loading…
Reference in a new issue