Skip to content

Commit

Permalink
fix: windows msvc build error
Browse files Browse the repository at this point in the history
  • Loading branch information
KonghaYao committed Dec 11, 2024
1 parent 10148db commit 67975cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "harfbuzz_rs_now"
version = "2.2.4"
version = "2.2.5"
authors = ["Manuel Reinhardt <manuel.rhdt@gmail.com>","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"
Expand Down
4 changes: 3 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 67975cf

Please sign in to comment.