We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93a57cf commit fa32742Copy full SHA for fa32742
lib/tsdl.ml
@@ -52,11 +52,15 @@ let lib_sdl2 =
52
(* macOS *)
53
trylib "/Library/Frameworks/SDL2.framework/SDL2"
54
with _ -> begin try
55
- (* Homebrew on macOS *)
+ (* Homebrew on macOS Intel *)
56
trylib "/usr/local/lib/libSDL2.dylib"
57
- with _ -> begin
58
- print_endline "Could not find SDL2 library file.";
59
- None
+ with _ -> begin try
+ (* Homebrew Apple Silicon (M1/M2/M3) *)
+ trylib "/opt/homebrew/lib/libSDL2.dylib"
60
+ with _ -> begin
61
+ print_endline "Could not find SDL2 library file.";
62
+ None
63
+ end
64
end
65
66
0 commit comments