summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2020-12-13 12:02:54 +0100
committerGitHub <noreply@github.com>2020-12-13 13:02:54 +0200
commita717e52f66a234cc49802147a6242e6342a90a81 (patch)
tree15ebb5fec8cf19a4ec02a603cde59da332647aed /tests
parent64550e15fdbc96d5690dc872257edc859c218068 (diff)
downloadwheel-git-a717e52f66a234cc49802147a6242e6342a90a81.tar.gz
Don't use default macos/arm64 deployment target in calculating the platform tag for fat binaries (#390)
The system compiler in Xcode 12 will not set the deployment target for arm64 below 11.0.0 (which is the first version of macOS supporting arm64). To allow building wheels that target an earlier version of macOS (by way of the x86_64 part of fat binaries) ignore the deployment target in the arm64 part of fat binaries when that's 11.0.0.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_macosx_libfile.py1
-rwxr-xr-xtests/testdata/macosx_minimal_system_version/test_lib_10_9_universal2.dylibbin0 -> 65936 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_macosx_libfile.py b/tests/test_macosx_libfile.py
index 337f0e3..614e723 100644
--- a/tests/test_macosx_libfile.py
+++ b/tests/test_macosx_libfile.py
@@ -23,6 +23,7 @@ def test_read_from_dylib():
("test_lib_multiple_fat.dylib", "10.14.0"),
("test_lib_10_10_10.dylib", "10.10.10"),
("test_lib_11.dylib", "11.0.0"),
+ ("test_lib_10_9_universal2.dylib", "10.9.0"),
]
for file_name, ver in versions:
extracted = extract_macosx_min_system_version(
diff --git a/tests/testdata/macosx_minimal_system_version/test_lib_10_9_universal2.dylib b/tests/testdata/macosx_minimal_system_version/test_lib_10_9_universal2.dylib
new file mode 100755
index 0000000..26ab109
--- /dev/null
+++ b/tests/testdata/macosx_minimal_system_version/test_lib_10_9_universal2.dylib
Binary files differ