find shared library on macos as well

This commit is contained in:
Dustin J. Mitchell
2022-02-16 00:07:30 +00:00
parent 8e34c107d5
commit 02055b122e

View File

@@ -11,7 +11,11 @@ fn build_libtaskchampion(suites: &[&'static str]) {
libtaskchampion.push("target");
libtaskchampion.push(env::var("PROFILE").unwrap());
libtaskchampion.push("deps");
libtaskchampion.push("libtaskchampion.so");
libtaskchampion.push(if cfg!(target_os = "macos") {
"libtaskchampion.dylib"
} else {
"libtaskchampion.so"
});
let mut build = cc::Build::new();
build.shared_flag(true);