Skip to content

Commit 2e76015

Browse files
committed
Merge all *bsd targets to a single match
1 parent 47f3a5b commit 2e76015

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::env;
22
use std::fs;
33
use std::path::{Path, PathBuf};
44

5+
#[derive(Debug, PartialEq, Eq)]
56
pub enum Version {
67
Lua51,
78
Lua52,
@@ -84,13 +85,7 @@ impl Build {
8485
_ if target.contains("linux") => {
8586
config.define("LUA_USE_LINUX", None);
8687
}
87-
_ if target.contains("freebsd") => {
88-
config.define("LUA_USE_LINUX", None);
89-
}
90-
_ if target.contains("netbsd") => {
91-
config.define("LUA_USE_LINUX", None);
92-
}
93-
_ if target.contains("openbsd") => {
88+
_ if target.ends_with("bsd") => {
9489
config.define("LUA_USE_LINUX", None);
9590
}
9691
_ if target.contains("apple-darwin") => {

0 commit comments

Comments
 (0)