setup.py
changeset 21840 0c88185c7d6c
parent 21558 8b482d49563b
parent 21839 f266be73f764
child 22198 77142de48ae4
equal deleted inserted replaced
21837:61b333b982ea 21840:0c88185c7d6c
   532     # C extension modules, and a bug has been filed upstream at
   532     # C extension modules, and a bug has been filed upstream at
   533     # http://bugs.python.org/issue21244. We also need to patch this here
   533     # http://bugs.python.org/issue21244. We also need to patch this here
   534     # so Mercurial can continue to compile in the meantime.
   534     # so Mercurial can continue to compile in the meantime.
   535     if xcode51:
   535     if xcode51:
   536         cflags = get_config_var('CFLAGS')
   536         cflags = get_config_var('CFLAGS')
   537         if re.search(r'-mno-fused-madd\b', cflags) is not None:
   537         if cflags and re.search(r'-mno-fused-madd\b', cflags) is not None:
   538             os.environ['CFLAGS'] = (
   538             os.environ['CFLAGS'] = (
   539                 os.environ.get('CFLAGS', '') + ' -Qunused-arguments')
   539                 os.environ.get('CFLAGS', '') + ' -Qunused-arguments')
   540 
   540 
   541 setup(name='mercurial',
   541 setup(name='mercurial',
   542       version=setupversion,
   542       version=setupversion,