Skip to content

Commit

Permalink
add compatible args in build script
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Feb 17, 2024
1 parent b17430b commit 83ac0fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
run: |
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- --D warnings
echo "LOL"
cd $HOME/.local/share/min_sqlite3_sys
pwd
ls -lah
test:
timeout-minutes: 20
Expand Down
7 changes: 2 additions & 5 deletions lpm/main/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ fn main() {
let sqlite_so = Path::new(&home_path).join(".local/share/min_sqlite3_sys");
let lz4_so = Path::new(&home_path).join(".local/share/tiny_lz4_decoder_sys");

println!(
"cargo:rustc-link-arg=-Wl,-rpath={},-rpath={}",
sqlite_so.display(),
lz4_so.display()
);
println!("cargo:rustc-link-arg=-Wl,-rpath,{}", sqlite_so.display(),);
println!("cargo:rustc-link-arg=-Wl,-rpath,{}", lz4_so.display());
}

#[cfg(not(target_family = "unix"))]
Expand Down
7 changes: 2 additions & 5 deletions sdk/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ fn main() {
let sqlite_so = Path::new(&home_path).join(".local/share/min_sqlite3_sys");
let lz4_so = Path::new(&home_path).join(".local/share/tiny_lz4_decoder_sys");

println!(
"cargo:rustc-link-arg=-Wl,-rpath={},-rpath={}",
sqlite_so.display(),
lz4_so.display()
);
println!("cargo:rustc-link-arg=-Wl,-rpath,{}", sqlite_so.display(),);
println!("cargo:rustc-link-arg=-Wl,-rpath,{}", lz4_so.display());
}

0 comments on commit 83ac0fc

Please sign in to comment.