Skip to content

Commit

Permalink
Include rust lib directory on LD_LIBRARY_PATH.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Jun 26, 2019
1 parent 797e148 commit 8da7714
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ test_bins_by_crate="$(
jq -r "select(.profile.test == true) | (.package_id | split(\" \"))[0] + \";\" + .filenames[]"
)"

# Set `LD_LIBRARY_PATH` so that tests can link against it
target_arch=$(rustup target list | grep -F default | cut -d ' ' -f 1)
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$(rustc --print sysroot)/lib/rustlib/${target_arch}/lib/"

crate_coverage_dirs=()
for test_bin_by_crate in $test_bins_by_crate; do
crate_name=${test_bin_by_crate%%;*}
Expand Down

0 comments on commit 8da7714

Please sign in to comment.