Use UTF-8 to build sys on Windows

This commit is contained in:
Kusaanko 2025-02-28 01:00:12 +09:00 committed by GitHub
parent e059748640
commit 60784be43a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");