56@@ -57,7 +57,7 @@ case $host_os in
57 # Homebrew where each one is located, then adjust paths accordingly.
58 if $BREW list --versions valgrind >/dev/null; then
59 valgrind_prefix=$($BREW --prefix valgrind 2>/dev/null)
60- VALGRIND_CPPFLAGS="-I$valgrind_prefix/include"
61+ VALGRIND_CPPFLAGS="-nostdinc -isystem $valgrind_prefix/include"
I guess there’s a reason why you also add -nostdinc
but I don’t see it.
On macOS x86_64, the /usr/local/include
directory is included by default. Packages been installed via Homebrew have alternative symlinks in it, in addition to ones in $(brew --prefix ${package})/include
.