Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit cb8f79d

Browse files
authored
Merge pull request #206 from kusaanko/fix-compile-on-windows-no-english
Use UTF-8 to build whisper.cpp on Windows
2 parents 95c4423 + 60784be commit cb8f79d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sys/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ fn main() {
164164
.very_verbose(true)
165165
.pic(true);
166166

167+
if cfg!(target_os = "windows") {
168+
config.cxxflag("/utf-8");
169+
}
170+
167171
if cfg!(feature = "coreml") {
168172
config.define("WHISPER_COREML", "ON");
169173
config.define("WHISPER_COREML_ALLOW_FALLBACK", "1");

0 commit comments

Comments
 (0)