Skip to content

Commit

Permalink
feat: include debug symbols in CGO code
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Dec 17, 2023
1 parent 2ac2e9e commit 781e860
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ else
fi

CGO_CFLAGS="-DFRANKENPHP_VERSION=${FRANKENPHP_VERSION} $(./buildroot/bin/php-config --includes | sed s#-I/#-I"${PWD}"/buildroot/#g)"
if [ -n "${DEBUG_SYMBOLS}" ]; then
CGO_CFLAGS="-g ${CGO_CFLAGS}"
fi
export CGO_CFLAGS
if [ "${os}" = "mac" ]; then
Expand Down

0 comments on commit 781e860

Please sign in to comment.