diff options
author | Andres Freund <andres@anarazel.de> | 2022-08-22 09:01:21 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2023-07-13 11:44:57 -0700 |
commit | d2d31c3cc2c22a4ca1dd6464a6f9ecc40a725f0f (patch) | |
tree | 15c38e6bcadba8da227467e5c2ce57f1a0ee80ef /unittests/darwintests.py | |
parent | 3e3d5e97c37a924478aef77806427a68f3f395b6 (diff) | |
download | meson-d2d31c3cc2c22a4ca1dd6464a6f9ecc40a725f0f.zip meson-d2d31c3cc2c22a4ca1dd6464a6f9ecc40a725f0f.tar.gz meson-d2d31c3cc2c22a4ca1dd6464a6f9ecc40a725f0f.tar.bz2 |
macos: map arm64e to aarch64, map "whole" architecture strings
Some macos libraries use arm64e instead of arm64 as architecture. Due to the
string replace approach taken so far, we'd end up with aarch64e as
architecture, which the rest of meson doesn't know.
Move architecture mapping to map whole architecture names and add arm64e ->
aarch64 mapping.
This change doesn't touch the case for armv7[s], where we add arm, rather than
replace armv7[s], but it's certainly not in line with the other mappings.
Fixes: #9493
Co-authored-by: Tristan Partin <tristan@partin.io>
Diffstat (limited to 'unittests/darwintests.py')
-rw-r--r-- | unittests/darwintests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unittests/darwintests.py b/unittests/darwintests.py index 254b3d0..1f17760 100644 --- a/unittests/darwintests.py +++ b/unittests/darwintests.py @@ -148,3 +148,8 @@ class DarwinTests(BasePlatformTests): testdir = os.path.join(self.objcpp_test_dir, '1 simple') self.init(testdir) self.assertIn('-std=c++14', self.get_compdb()[0]['command']) + + def test_darwin_get_object_archs(self): + from mesonbuild.mesonlib import darwin_get_object_archs + archs = darwin_get_object_archs('/System/Library/CoreServices/Encodings/libSymbolConverter.dylib') + self.assertEqual(archs, ['x86_64', 'aarch64']) |