Skip to content

Commit f68701a

Browse files
bundled: Obey coretext, directwrite features when configuring harfbuzz. (#234)
When we build a bundled `harfbuzz`, only enable `HAVE_CORETEXT` and `HAVE_DIRECTWRITE` when the corresponding features are set. We don't correct `HAVE_FREETYPE` here as it has other larger issues that need to be resolved first.
1 parent 3552a2e commit f68701a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

harfbuzz-sys/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ fn build_harfbuzz() {
2323
cfg.define("HAVE_PTHREAD", "1");
2424
}
2525

26-
if target.contains("apple") {
26+
if target.contains("apple") && cfg!(feature = "coretext") {
2727
cfg.define("HAVE_CORETEXT", "1");
2828
}
2929

30-
if target.contains("windows") {
30+
if target.contains("windows") && cfg!(feature = "directwrite") {
3131
cfg.define("HAVE_DIRECTWRITE", "1");
3232
}
3333

0 commit comments

Comments
 (0)