changeset 21839:f266be73f764 stable

setup: fixed for Pythons which don't have a CFLAGS Specifically this is observed to happen on the PyPy one gets from homebrew
author Alex Gaynor <alex.gaynor@gmail.com>
date Sat, 05 Jul 2014 07:31:08 -0700
parents 2392b9e19366
children 0c88185c7d6c fd2527d9b995
files setup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Tue Jul 01 23:32:18 2014 -0500
+++ b/setup.py	Sat Jul 05 07:31:08 2014 -0700
@@ -534,7 +534,7 @@
     # so Mercurial can continue to compile in the meantime.
     if xcode51:
         cflags = get_config_var('CFLAGS')
-        if re.search(r'-mno-fused-madd\b', cflags) is not None:
+        if cflags and re.search(r'-mno-fused-madd\b', cflags) is not None:
             os.environ['CFLAGS'] = (
                 os.environ.get('CFLAGS', '') + ' -Qunused-arguments')