Skip to content

Commit cc3897b

Browse files
committed
Set --cfg=travis in test/build.rs
1 parent 3a55a7a commit cc3897b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nix-test/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ pub fn main() {
1313
"UNKNOWN"
1414
};
1515

16+
if let Ok(s) = env::var("TRAVIS") {
17+
if s == "true" {
18+
println!("cargo:rustc-cfg=travis");
19+
}
20+
}
21+
1622
gcc::Config::new()
1723
.file("src/const.c")
1824
.file("src/sizes.c")

0 commit comments

Comments
 (0)