Skip to content

Commit b9bc512

Browse files
committed
Fix passing list of arguments to lcov and gcov
Without proper quoting, coverage scripts would fail if the built products directory contains a space.
1 parent 9024b26 commit b9bc512

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

envcov.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ OBJ_DIR=${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}
1616

1717
# Fix for the new LLVM-COV that requires gcov to have a -v paramter
1818
LCOV() {
19-
${LCOV_PATH}/lcov $* --gcov-tool ${XCODECOVERAGE_PATH}/llvm-cov-wrapper.sh
19+
${LCOV_PATH}/lcov "$@" --gcov-tool ${XCODECOVERAGE_PATH}/llvm-cov-wrapper.sh
2020
}

llvm-cov-wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ if [ "$1" = "-v" ]; then
99
echo "llvm-cov-wrapper 4.2.1"
1010
exit 0
1111
else
12-
/usr/bin/gcov $*
12+
/usr/bin/gcov "$@"
1313
fi

0 commit comments

Comments
 (0)