-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
fn main() { | ||
let linkage = | ||
std::env::var("DEP_TILEDB_LINKAGE").expect("Missing DEP_TILEDB_LIKAGE"); | ||
if linkage == "dynamic" { | ||
let libdir = std::env::var("DEP_TILEDB_LIBDIR") | ||
.expect("Missing DEP_TILEDB_LIBDIR"); | ||
println!("cargo::rustc-env=TILEDB_RPATH={}", libdir); | ||
} else if linkage == "static" { | ||
println!("cargo::rustc-env=TILEDB_RPATH="); | ||
} else { | ||
panic!("Unknown linkage of tiledb-sys: {linkage}") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters