From 84522742dafeaa902c24b27e94b02e4fc2d0e02e Mon Sep 17 00:00:00 2001 From: arizhih Date: Tue, 9 Jul 2024 12:01:49 +0200 Subject: [PATCH] Enable WHISPER_DEBUG flag to get DEBUG logs on debug builds --- sys/Cargo.toml | 2 +- sys/build.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/Cargo.toml b/sys/Cargo.toml index b74a8ea..67e21ea 100644 --- a/sys/Cargo.toml +++ b/sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "whisper-rs-sys" -version = "0.10.0" +version = "0.10.1" edition = "2021" description = "Rust bindings for whisper.cpp (FFI bindings)" license = "Unlicense" diff --git a/sys/build.rs b/sys/build.rs index dad3d57..97e5a01 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -184,6 +184,7 @@ fn main() { // debug builds are too slow to even remotely be usable, // so we build with optimizations even in debug mode config.define("CMAKE_BUILD_TYPE", "RelWithDebInfo"); + config.cxxflag("-DWHISPER_DEBUG"); } // Allow passing any WHISPER cmake flag