File tree 1 file changed +4
-4
lines changed
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
378
378
+ _bootstrap._verbose_message('Adding Apple Framework dylib finder at {}', frameworks_folder)
379
379
+ sys.meta_path.append(AppleFrameworkFinder(frameworks_folder))
380
380
diff --git a/Lib/platform.py b/Lib/platform.py
381
- index 6a820c90a1..11f7fc926e 100755
381
+ index 6a820c90a1..f16a540118 100755
382
382
--- a/Lib/platform.py
383
383
+++ b/Lib/platform.py
384
384
@@ -449,6 +449,26 @@
@@ -425,17 +425,17 @@ index 6a820c90a1..11f7fc926e 100755
425
425
+ # as uname.machine. On device it doesn't; but there's only
426
426
+ # on CPU architecture on device
427
427
+ def get_ios():
428
- + if sys.implementation._multiarch.endswith('simulator' ):
428
+ + if getattr( sys.implementation, "_simulator", False ):
429
429
+ return os.uname().machine
430
430
+ return 'arm64'
431
431
+
432
432
+ def get_tvos():
433
- + if sys.implementation._multiarch.endswith('simulator' ):
433
+ + if getattr( sys.implementation, "_simulator", False ):
434
434
+ return os.uname().machine
435
435
+ return 'arm64'
436
436
+
437
437
+ def get_watchos():
438
- + if sys.implementation._multiarch.endswith('simulator' ):
438
+ + if getattr( sys.implementation, "_simulator", False ):
439
439
+ return os.uname().machine
440
440
+ return 'arm64_32'
441
441
+
You can’t perform that action at this time.
0 commit comments