find shared library on macos as well
This commit is contained in:
@@ -11,7 +11,11 @@ fn build_libtaskchampion(suites: &[&'static str]) {
|
|||||||
libtaskchampion.push("target");
|
libtaskchampion.push("target");
|
||||||
libtaskchampion.push(env::var("PROFILE").unwrap());
|
libtaskchampion.push(env::var("PROFILE").unwrap());
|
||||||
libtaskchampion.push("deps");
|
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();
|
let mut build = cc::Build::new();
|
||||||
build.shared_flag(true);
|
build.shared_flag(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user