Skip to content

Commit 3684fc0

Browse files
committed
Only apply hack if final path is harfbuzz
1 parent 6f65cd4 commit 3684fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bridge_harfbuzz/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ mod inner {
4747
dep.foreach_include_path(|p| {
4848
// HACK: On macOS, the default brew harfbuzz for some reason points into the harfbuzz
4949
// folder itself, so we need to go up one level to the includes folder.
50-
if is_macos_external {
50+
if is_macos_external && p.ends_with("harfbuzz") {
5151
print!("{}{}", sep, p.parent().unwrap().to_str().unwrap());
5252
sep = ";";
5353
}

0 commit comments

Comments
 (0)