diff options
| author | Mason Reed <mason@vector35.com> | 2024-11-07 16:48:21 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-11-08 03:13:53 -0500 |
| commit | e348a79c132b1003b5bc5021f64ba205462248fd (patch) | |
| tree | 0140543e4fe13e06e6640139929a5c66b5b06394 /plugins/warp/build.rs | |
| parent | 66b7926e976185111dbbf1ccb6696bddde6555de (diff) | |
WARP: Misc changes
Diffstat (limited to 'plugins/warp/build.rs')
| -rw-r--r-- | plugins/warp/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/warp/build.rs b/plugins/warp/build.rs index 907abff5..1239f000 100644 --- a/plugins/warp/build.rs +++ b/plugins/warp/build.rs @@ -2,7 +2,7 @@ use std::path::PathBuf; use std::process::Command; -#[cfg(test)] +#[cfg(feature = "test")] fn compile_rust(file: PathBuf) -> bool { let out_dir = std::env::var_os("OUT_DIR").unwrap(); let rustc = std::env::var_os("RUSTC").unwrap(); @@ -28,7 +28,7 @@ fn main() { } } - #[cfg(test)] + #[cfg(feature = "test")] { let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR specified"); let out_dir_path = PathBuf::from(out_dir); |
