Skip to content

Commit 7a32f66

Browse files
committed
WIP: Trying to set build type
1 parent 1df5f7e commit 7a32f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snmalloc-rs/snmalloc-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ impl BuilderDefine for cmake::Config {
253253
}
254254

255255
fn configure_cpp(&mut self, debug: bool) -> &mut Self {
256-
self.get_profile() = if debug { "Debug" } else { "Release" };
256+
self.profile(if debug { "Debug" } else { "Release" });
257257
self.define("SNMALLOC_RUST_SUPPORT", "ON")
258258
.very_verbose(true)
259259
.define("CMAKE_SH", "CMAKE_SH-NOTFOUND")

0 commit comments

Comments
 (0)