Merge pull request #206 from kusaanko/fix-compile-on-windows-no-english

Use UTF-8 to build whisper.cpp on Windows
This commit is contained in:
Niko 2025-03-02 10:44:31 -07:00 committed by GitHub
commit cb8f79d474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,6 +164,10 @@ fn main() {
.very_verbose(true) .very_verbose(true)
.pic(true); .pic(true);
if cfg!(target_os = "windows") {
config.cxxflag("/utf-8");
}
if cfg!(feature = "coreml") { if cfg!(feature = "coreml") {
config.define("WHISPER_COREML", "ON"); config.define("WHISPER_COREML", "ON");
config.define("WHISPER_COREML_ALLOW_FALLBACK", "1"); config.define("WHISPER_COREML_ALLOW_FALLBACK", "1");