Skip to content

Commit

Permalink
Fix compilation on macOs (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamluc authored and realFlowControl committed Apr 4, 2024
1 parent d4a7122 commit 8de3b1f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compile_rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ if test -n "$SHARED"; then
RUSTFLAGS="$RUSTFLAGS --cfg php_shared_build"
fi

case "${host_os}" in
darwin*)
RUSTFLAGS="$RUSTFLAGS -Clink-arg=-undefined -Clink-arg=dynamic_lookup";
;;
esac

RUSTFLAGS="$RUSTFLAGS" RUSTC_BOOTSTRAP=1 "${DDTRACE_CARGO:-cargo}" build $(test "${PROFILE:-debug}" = "debug" || echo --profile "$PROFILE") "$@"

0 comments on commit 8de3b1f

Please sign in to comment.