Skip to content

Commit 1c0490b

Browse files
Check for macos binaries
1 parent bba8516 commit 1c0490b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/vscode/superbol-vscode-platform/superbol_languageclient.ml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,16 @@ let find_superbol root =
4444
let open Node.Process in
4545
let prefix = "superbol-free" in
4646
let suffix = if platform == "win32" then ".exe" else "" in
47-
Vscode.Uri.fsPath @@ find_existing @@ List.map (fun name ->
47+
Vscode.Uri.fsPath @@ find_existing @@
48+
List.map (fun name ->
4849
Vscode.Uri.joinPath root ~pathSegments:[name]) @@ [
4950
Format.asprintf "%s-%s-%s%s" prefix platform arch suffix;
5051
Format.asprintf "%s-%s%s" prefix platform suffix;
5152
Format.asprintf "%s%s" prefix suffix
52-
]
53-
53+
] @ if platform = "darwin" && arch = "arm64" then
54+
[ Format.sprintf "%s-%s-%s%s" prefix platform "x64" suffix]
55+
else
56+
[]
5457

5558
let scan_host_and_port url =
5659
let fail () = Format.ksprintf failwith "Invalid %S" url in

0 commit comments

Comments
 (0)