diff --git a/Cargo.toml b/Cargo.toml index d5ccfb0..f96946a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "harfbuzz_rs_now" -version = "2.2.4" +version = "2.2.5" authors = ["Manuel Reinhardt ","KonghaYao <3446798488@qq.com>"] description = "A high-level interface to HarfBuzz, exposing its most important functionality in a safe manner using Rust." repository = "https://github.com/harfbuzz/harfbuzz_rs" diff --git a/build.rs b/build.rs index beb6a4c..60f6d0d 100644 --- a/build.rs +++ b/build.rs @@ -19,12 +19,14 @@ fn main() { let mut cfg = cc::Build::new(); cfg.cpp(true) .flag("-std=c++11") - .flag("-Wno-suggest-attribute=format") .warnings(false) .include("harfbuzz/src") .include("src/subset") .file("harfbuzz-output.cc"); + if !target.contains("windows-msvc") { + cfg.flag("-Wno-suggest-attribute=format"); + } if !target.contains("windows") { cfg.define("HAVE_PTHREAD", "1"); }