We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 717e797 commit a56d77cCopy full SHA for a56d77c
clr_loader/util/find.py
@@ -1,5 +1,5 @@
1
import os
2
-import os.path
+import platform
3
import shutil
4
import sys
5
from pathlib import Path
@@ -42,7 +42,8 @@ def find_dotnet_root() -> Path:
42
prog_files = Path(prog_files)
43
dotnet_root = prog_files / "dotnet"
44
elif sys.platform == "darwin":
45
- if sys.maxsize > 2**32: # is_64bits
+ if "ARM64" in os.uname().version and platform.machine() == "x86_64":
46
+ # Apple Silicon in Rosetta 2 mode
47
dotnet_root = Path("/usr/local/share/dotnet/x64")
48
else:
49
dotnet_root = Path("/usr/local/share/dotnet")
0 commit comments