File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ index 49bcaea78d..6aac60a0aa 100644
378378+ _bootstrap._verbose_message('Adding Apple Framework dylib finder at {}', frameworks_folder)
379379+ sys.meta_path.append(AppleFrameworkFinder(frameworks_folder))
380380diff --git a/Lib/platform.py b/Lib/platform.py
381- index 6a820c90a1..11f7fc926e 100755
381+ index 6a820c90a1..f16a540118 100755
382382--- a/Lib/platform.py
383383+++ b/Lib/platform.py
384384@@ -449,6 +449,26 @@
@@ -425,17 +425,17 @@ index 6a820c90a1..11f7fc926e 100755
425425+ # as uname.machine. On device it doesn't; but there's only
426426+ # on CPU architecture on device
427427+ def get_ios():
428- + if sys.implementation._multiarch.endswith('simulator' ):
428+ + if getattr( sys.implementation, "_simulator", False ):
429429+ return os.uname().machine
430430+ return 'arm64'
431431+
432432+ def get_tvos():
433- + if sys.implementation._multiarch.endswith('simulator' ):
433+ + if getattr( sys.implementation, "_simulator", False ):
434434+ return os.uname().machine
435435+ return 'arm64'
436436+
437437+ def get_watchos():
438- + if sys.implementation._multiarch.endswith('simulator' ):
438+ + if getattr( sys.implementation, "_simulator", False ):
439439+ return os.uname().machine
440440+ return 'arm64_32'
441441+
You can’t perform that action at this time.
0 commit comments