Skip to content

Commit

Permalink
Update build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
dobefore authored Nov 12, 2022
1 parent 11691e1 commit 7940740
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ fn main() {
// used in cross compile while building with CD
// such as arm-unknown-linux-musleabihf
let target = env::var("TARGET").expect("TARGET was not set");
if target.contains("arm") && target.contains("musl") {
// if target.contains("arm") && target.contains("musl") {
// find and link static sqlite3 lib
let sql = Path::new(&env::current_dir().unwrap()).join("sql/lib");
println!("cargo:rustc-link-search=native={}", sql.display());
println!("cargo:rustc-link-lib=static=sqlite3");
}
// let sql = Path::new(&env::current_dir().unwrap()).join("sql/lib");
// println!("cargo:rustc-link-search=native={}", sql.display());
// println!("cargo:rustc-link-lib=static=sqlite3");
// }
if target.contains("aarch64") && target.contains("musl") {
// find and link static sqlite3 lib
let sql = Path::new(&env::current_dir().unwrap()).join("sql/lib");
Expand Down

0 comments on commit 7940740

Please sign in to comment.