Skip to content

Commit 2f56d73

Browse files
committed
fix: add DragonFlyBSD target support
DragonFly's Rust target triple is `x86_64-unknown-dragonfly` which doesn't end with "bsd", so the existing check missed it. DragonFly is a BSD and uses the same POSIX/Linux-compatible Lua build flags.
1 parent 178af5a commit 2f56d73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl Build {
136136
_ if target.contains("linux") => {
137137
config.define("LUA_USE_LINUX", None);
138138
}
139-
_ if target.ends_with("bsd") => {
139+
_ if target.ends_with("bsd") || target.contains("dragonfly") => {
140140
config.define("LUA_USE_LINUX", None);
141141
}
142142
_ if target.ends_with("illumos") => {

0 commit comments

Comments
 (0)