macos: lipo from older xcode does not support -archs

pull/4862/head
Nirbheek Chauhan 6 years ago committed by Nirbheek Chauhan
parent 50b863032e
commit b5f6be6733
  1. 3
      mesonbuild/mesonlib.py

@ -468,10 +468,11 @@ def darwin_get_object_archs(objpath):
to fetch the list of archs supported by it. Supports both thin objects and
'fat' objects.
'''
_, stdo, stderr = Popen_safe(['lipo', '-archs', objpath])
_, stdo, stderr = Popen_safe(['lipo', '-info', objpath])
if not stdo:
mlog.debug('lipo {}: {}'.format(objpath, stderr))
return None
stdo = stdo.rsplit(': ', 1)[1]
# Convert from lipo-style archs to meson-style CPUs
stdo = stdo.replace('i386', 'x86')
# Add generic name for armv7 and armv7s

Loading…
Cancel
Save