macos: lipo outputs aarch64 as arm64, fix it

Or we'll reject arm64 objects as invalid when building for aarch64
pull/4712/merge
Nirbheek Chauhan 6 years ago committed by Nirbheek Chauhan
parent 8a7537ce24
commit 79c087bad2
  1. 1
      mesonbuild/mesonlib.py

@ -475,6 +475,7 @@ def darwin_get_object_archs(objpath):
stdo = stdo.rsplit(': ', 1)[1]
# Convert from lipo-style archs to meson-style CPUs
stdo = stdo.replace('i386', 'x86')
stdo = stdo.replace('arm64', 'aarch64')
# Add generic name for armv7 and armv7s
if 'armv7' in stdo:
stdo += ' arm'

Loading…
Cancel
Save