Skip to content

Commit a27d911

Browse files
committed
Fixed for projects using Xcode New Build System
1 parent 1c78717 commit a27d911

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
NEXT RELEASE
2+
------------
3+
4+
* Fixed for projects using Xcode "New Build System"
5+
6+
17
Version 1.3.1
28
-------------
39
_24 Sep 2017_

envcov.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@
55
scripts="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
66
source "${scripts}/env.sh"
77

8+
# For New Build System, hard-code to 64-bit simulator
9+
if [ ${CURRENT_ARCH} = "undefined_arch" ]
10+
then
11+
ARCHITECTURE="x86_64"
12+
else
13+
ARCHITECTURE=${CURRENT_ARCH}
14+
fi
15+
816
LCOV_PATH="${scripts}/lcov-1.13/bin"
9-
OBJ_DIR="${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}"
17+
OBJ_DIR="${OBJECT_FILE_DIR_normal}/${ARCHITECTURE}"
1018

1119
# Fix for the new LLVM-COV that requires gcov to have a -v parameter
1220
LCOV() {
13-
"${LCOV_PATH}/lcov" "$@" --gcov-tool "${scripts}/llvm-cov-wrapper.sh"
21+
"${LCOV_PATH}/lcov" "$@" --gcov-tool "${scripts}/llvm-cov-wrapper.sh"
1422
}

0 commit comments

Comments
 (0)