forkserver support attempt on freebsd (#898)

Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
This commit is contained in:
David CARLIER 2022-11-17 22:14:15 +00:00 committed by GitHub
parent d77769540a
commit f7f6392a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ fn main() {
.file(src_dir.join("cmplog.c")) .file(src_dir.join("cmplog.c"))
.compile("cmplog"); .compile("cmplog");
#[cfg(any(target_os = "linux"))] #[cfg(any(target_os = "linux", target_os = "freebsd"))]
{ {
println!("cargo:rerun-if-changed=src/forkserver.c"); println!("cargo:rerun-if-changed=src/forkserver.c");

View File

@ -101,7 +101,7 @@ pub use cmplog::*;
#[cfg(feature = "std")] #[cfg(feature = "std")]
pub mod drcov; pub mod drcov;
#[cfg(target_os = "linux")] #[cfg(any(target_os = "linux", target_os = "freebsd"))]
pub mod forkserver; pub mod forkserver;
#[cfg(target_os = "linux")] #[cfg(any(target_os = "linux", target_os = "freebsd"))]
pub use forkserver::*; pub use forkserver::*;