Skip to content

Commit c960329

Browse files
committed
Update macOS install script with coverage flags
1 parent 90cadec commit c960329

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/macos_install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ CONFIGURE_FLAGS="\
5959
--without-x \
6060
"
6161

62-
export CFLAGS="-O2 -pipe -ffp-contract=off -arch ${CONDA_ARCH} -DGL_SILENCE_DEPRECATION -Wall -Wextra -Wpedantic -Wvla -fprofile-instr-generate -fcoverage-mapping"
63-
export CXXFLAGS="-O2 -pipe -ffp-contract=off -stdlib=libc++ -arch ${CONDA_ARCH} -Wall -Wextra -Wpedantic -fprofile-instr-generate -fcoverage-mapping"
62+
export EXTRA_COV_FLAGS="-fprofile-instr-generate -fcoverage-mapping -mllvm -runtime-counter-relocation"
63+
export CFLAGS="-O2 -pipe -ffp-contract=off -arch ${CONDA_ARCH} -DGL_SILENCE_DEPRECATION -Wall -Wextra -Wpedantic -Wvla"
64+
export CXXFLAGS="-O2 -pipe -ffp-contract=off -stdlib=libc++ -arch ${CONDA_ARCH} -Wall -Wextra -Wpedantic $EXTRA_COV_FLAGS"
6465
export CPPFLAGS="-isystem${CONDA_PREFIX}/include"
65-
export LDFLAGS="-fprofile-instr-generate"
6666

6767
./configure $CONFIGURE_FLAGS
6868

69+
export LDFLAGS="-fprofile-instr-generate -v"
70+
6971
EXEMPT=""
7072
make -j$(sysctl -n hw.ncpu) CFLAGS="$CFLAGS -Werror $EXEMPT" \
7173
CXXFLAGS="$CXXFLAGS -Werror $EXEMPT" LDFLAGS="$LDFLAGS"

0 commit comments

Comments
 (0)