summaryrefslogtreecommitdiff
path: root/setupinfo.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-01-17 19:49:02 +0100
committerStefan Behnel <stefan_ml@behnel.de>2014-01-17 19:49:02 +0100
commit662df9a9847a78bb9c46891aa746f75bf80690a0 (patch)
tree4e425540918ef610f2a1d382e3188cc8a8ad8d03 /setupinfo.py
parent272d641b713c219e668eeb72f5255b2b18639f19 (diff)
downloadpython-lxml-662df9a9847a78bb9c46891aa746f75bf80690a0.tar.gz
allow disabling -w C compiler option
Diffstat (limited to 'setupinfo.py')
-rw-r--r--setupinfo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setupinfo.py b/setupinfo.py
index 10493bd1..4a1d150d 100644
--- a/setupinfo.py
+++ b/setupinfo.py
@@ -219,7 +219,9 @@ def include_dirs(static_include_dirs):
return result
def cflags(static_cflags):
- result = ['-w']
+ result = []
+ if not OPTION_SHOW_WARNINGS:
+ result.append('-w')
if OPTION_DEBUG_GCC:
result.append('-g2')