-
Notifications
You must be signed in to change notification settings - Fork 318
/
envcov.sh
22 lines (18 loc) · 628 Bytes
/
envcov.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# XcodeCoverage by Jon Reid, https://qualitycoding.org
# Copyright 2021 Quality Coding, Inc. See LICENSE.txt
scripts="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${scripts}/env.sh"
# For New Build System, hard-code to 64-bit simulator
if [ ${CURRENT_ARCH} = "undefined_arch" ]
then
ARCHITECTURE="x86_64"
else
ARCHITECTURE=${CURRENT_ARCH}
fi
LCOV_PATH="${scripts}/lcov-1.14/bin"
OBJ_DIR="${OBJECT_FILE_DIR_normal}/${ARCHITECTURE}"
# Fix for the new LLVM-COV that requires gcov to have a -v parameter
LCOV() {
"${LCOV_PATH}/lcov" "$@" --gcov-tool "${scripts}/llvm-cov-wrapper.sh"
}