summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index 76ca0961e4..f355447a67 100644
--- a/build.rs
+++ b/build.rs
@@ -16,9 +16,15 @@ fn main() {
}
if env::var("LIBC_CI").is_ok() {
+ if let Some(11) = which_freebsd() {
+ println!("cargo:rustc-cfg=freebsd11");
+ }
if let Some(12) = which_freebsd() {
println!("cargo:rustc-cfg=freebsd12");
}
+ if let Some(13) = which_freebsd() {
+ println!("cargo:rustc-cfg=freebsd13");
+ }
}
// Rust >= 1.15 supports private module use:
@@ -100,6 +106,7 @@ fn which_freebsd() -> Option<i32> {
match &stdout {
s if s.starts_with("11") => Some(11),
s if s.starts_with("12") => Some(12),
+ s if s.starts_with("13") => Some(13),
_ => None,
}
}