From 60784be43ab1aeea2d1ab54978ee9534a4799e42 Mon Sep 17 00:00:00 2001 From: Kusaanko <39370373+kusaanko@users.noreply.github.com> Date: Fri, 28 Feb 2025 01:00:12 +0900 Subject: [PATCH] Use UTF-8 to build sys on Windows --- sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/build.rs b/sys/build.rs index 8fd47a1..a1716f9 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -164,6 +164,10 @@ fn main() { .very_verbose(true) .pic(true); + if cfg!(target_os = "windows") { + config.cxxflag("/utf-8"); + } + if cfg!(feature = "coreml") { config.define("WHISPER_COREML", "ON"); config.define("WHISPER_COREML_ALLOW_FALLBACK", "1");