Skip to content

Commit 9a0afae

Browse files
committed
Use the proper way to compile SDL2 in release mode
1 parent e417938 commit 9a0afae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdl2-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ fn download_sdl2() -> PathBuf {
116116
#[cfg(feature = "bundled")]
117117
fn compile_sdl2(sdl2_build_path: &Path, target_os: &str) -> PathBuf {
118118
let mut cfg = cmake::Config::new(sdl2_build_path);
119-
cfg.define("CMAKE_BUILD_TYPE", "RELEASE");
119+
cfg.profile("release");
120120

121121
if target_os == "windows-gnu" {
122122
cfg.define("VIDEO_OPENGLES", "OFF");

0 commit comments

Comments
 (0)