File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ fn download_sdl2() -> PathBuf {
115
115
#[ cfg( feature = "bundled" ) ]
116
116
fn compile_sdl2 ( sdl2_build_path : & Path , target_os : & str ) -> PathBuf {
117
117
let mut cfg = cmake:: Config :: new ( sdl2_build_path) ;
118
+ cfg. define ( "CMAKE_BUILD_TYPE" , "RELEASE" ) ;
118
119
119
120
if target_os == "windows-gnu" {
120
121
cfg. define ( "VIDEO_OPENGLES" , "OFF" ) ;
@@ -185,8 +186,8 @@ fn link_sdl2(target_os: &str) {
185
186
186
187
#[ cfg( feature = "static-link" ) ] {
187
188
if cfg ! ( feature = "bundled" ) || cfg ! ( feature = "use-pkgconfig" ) == false {
188
- println ! ( "cargo:rustc-link-lib=static=SDL2maind " ) ;
189
- println ! ( "cargo:rustc-link-lib=static=SDL2d " ) ;
189
+ println ! ( "cargo:rustc-link-lib=static=SDL2main " ) ;
190
+ println ! ( "cargo:rustc-link-lib=static=SDL2 " ) ;
190
191
}
191
192
192
193
// Also linked to any required libraries for each supported platform
You can’t perform that action at this time.
0 commit comments