[Python-checkins] cpython (merge 3.3 -> default): Merge 3.3.
stefan.krah
python-checkins at python.org
Thu Jan 17 12:54:12 CET 2013
http://hg.python.org/cpython/rev/9638fc96deb7
changeset: 81555:9638fc96deb7
parent: 81553:f3e348ab08c6
parent: 81554:d536f34759f5
user: Stefan Krah <skrah at bytereef.org>
date: Thu Jan 17 12:52:42 2013 +0100
summary:
Merge 3.3.
files:
setup.py | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -2008,8 +2008,12 @@
# Increase warning level for gcc:
if 'gcc' in cc:
- extra_compile_args.extend(['-Wextra',
- '-Wno-missing-field-initializers'])
+ cmd = ("echo '' | gcc -Wextra -Wno-missing-field-initializers -E - "
+ "> /dev/null 2>&1")
+ ret = os.system(cmd)
+ if ret >> 8 == 0:
+ extra_compile_args.extend(['-Wextra',
+ '-Wno-missing-field-initializers'])
# Uncomment for extra functionality:
#define_macros.append(('EXTRA_FUNCTIONALITY', 1))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list