setup.py
branchstable
changeset 21839 f266be73f764
parent 21229 54d7657d7d1e
child 21840 0c88185c7d6c
equal deleted inserted replaced
21831:2392b9e19366 21839:f266be73f764
   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,