From 8b4686ffd7f4b7bce7bb27ab48d04e598ece073e Mon Sep 17 00:00:00 2001 From: PyYoshi Date: Sat, 7 Jul 2012 12:44:19 +0900 Subject: [PATCH] add -g args --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index aea9df6..bc1b0c5 100644 --- a/setup.py +++ b/setup.py @@ -60,11 +60,16 @@ uchardet_sources = [ ] macros = [] +extra_compile_args = [] +extra_link_args = [] + if platform.system() == "Windows": macros.append(("WIN32","1")) if DEBUG: macros.append(("DEBUG_chardet","1")) + extra_compile_args.append("-g"), + extra_link_args.append("-g"), cchardet_module = Extension("cchardet._cchardet", sources = uchardet_sources+[cchardet_source],