Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 5ccb081

Browse files
committed
The musl-reference-tests only make sense on Linux
1 parent 0040a07 commit 5ccb081

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ use std::env;
33
fn main() {
44
println!("cargo:rerun-if-changed=build.rs");
55

6-
#[cfg(feature = "musl-reference-tests")]
7-
musl_reference_tests::generate();
6+
#[cfg(all(feature = "musl-reference-tests", target_os = "linux"))] {
7+
musl_reference_tests::generate();
8+
}
89

910
if !cfg!(feature = "checked") {
1011
let lvl = env::var("OPT_LEVEL").unwrap();
@@ -14,7 +15,7 @@ fn main() {
1415
}
1516
}
1617

17-
#[cfg(feature = "musl-reference-tests")]
18+
#[cfg(all(feature = "musl-reference-tests", target_os = "linux"))]
1819
mod musl_reference_tests {
1920
use rand::seq::SliceRandom;
2021
use rand::Rng;

0 commit comments

Comments
 (0)