Skip to content

Commit

Permalink
Fix compilation on macOs
Browse files Browse the repository at this point in the history
  • Loading branch information
iamluc committed Apr 4, 2024
1 parent 633c5ad commit 105356b
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 "$OSTYPE" 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 105356b

Please sign in to comment.