Skip to content

Commit e0dcfdc

Browse files
committed
dddd
1 parent f45f490 commit e0dcfdc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

util/build-run-test-coverage-linux.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# TODO: Do not instrument 3rd party librairies to save space and performance
2626

27-
set -ux
27+
set -eux
2828

2929
ME="${0}"
3030
ME_dir="$(dirname -- "$(readlink -fm -- "${ME}")")"
@@ -33,8 +33,7 @@ REPO_main_dir="$(dirname -- "${ME_dir}")"
3333
FEATURES_OPTION=${FEATURES_OPTION:-"--features feat_os_unix"}
3434
COVERAGE_DIR=${COVERAGE_DIR:-"${REPO_main_dir}/coverage"}
3535

36-
LLVM_BIN_PATH="$(rustc --print sysroot)/lib/rustlib/x86_64-unknown-linux-gnu/bin"
37-
LLVM_PROFDATA="${LLVM_BIN_PATH}/llvm-profdata"
36+
LLVM_PROFDATA="$(find $(rustc --print sysroot) -name llvm-profdata)"
3837

3938
PROFRAW_DIR="${COVERAGE_DIR}/traces"
4039
PROFDATA_DIR="${COVERAGE_DIR}/data"

0 commit comments

Comments
 (0)