Enable WHISPER_DEBUG flag to get DEBUG logs on debug builds

This commit is contained in:
arizhih 2024-07-09 12:01:49 +02:00
parent f1030ef762
commit 84522742da
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "whisper-rs-sys" name = "whisper-rs-sys"
version = "0.10.0" version = "0.10.1"
edition = "2021" edition = "2021"
description = "Rust bindings for whisper.cpp (FFI bindings)" description = "Rust bindings for whisper.cpp (FFI bindings)"
license = "Unlicense" license = "Unlicense"

View file

@ -184,6 +184,7 @@ fn main() {
// debug builds are too slow to even remotely be usable, // debug builds are too slow to even remotely be usable,
// so we build with optimizations even in debug mode // so we build with optimizations even in debug mode
config.define("CMAKE_BUILD_TYPE", "RelWithDebInfo"); config.define("CMAKE_BUILD_TYPE", "RelWithDebInfo");
config.cxxflag("-DWHISPER_DEBUG");
} }
// Allow passing any WHISPER cmake flag // Allow passing any WHISPER cmake flag