Skip to content

Commit ae41d05

Browse files
Add missing CoreHaptics framework
This framework is used by the SDL_JOYSTICK module, but it is missing from Darwin builds. I have confirmed that this fixes my issues on my MacOS build. I have added the directive for the iOS builds, too, but that will need to be double-checked as I don't have a workflow for that.
1 parent 6e078fe commit ae41d05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdl2-sys/build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ fn link_sdl2(target_os: &str) {
208208
println!("cargo:rustc-flags=-l framework=CoreMotion");
209209
println!("cargo:rustc-flags=-l framework=Foundation");
210210
println!("cargo:rustc-flags=-l framework=GameController");
211+
println!("cargo:rustc-flags=-l framework=CoreHaptics");
211212
println!("cargo:rustc-flags=-l framework=OpenGLES");
212213
println!("cargo:rustc-flags=-l framework=QuartzCore");
213214
println!("cargo:rustc-flags=-l framework=UIKit");
@@ -253,6 +254,7 @@ fn link_sdl2(target_os: &str) {
253254
println!("cargo:rustc-link-lib=framework=Carbon");
254255
println!("cargo:rustc-link-lib=framework=ForceFeedback");
255256
println!("cargo:rustc-link-lib=framework=GameController");
257+
println!("cargo:rustc-link-lib=framework=CoreHaptics");
256258
println!("cargo:rustc-link-lib=framework=CoreVideo");
257259
println!("cargo:rustc-link-lib=framework=CoreAudio");
258260
println!("cargo:rustc-link-lib=framework=AudioToolbox");

0 commit comments

Comments
 (0)