Skip to content

Commit f93b642

Browse files
committed
Fix compilation on macOs
1 parent 633c5ad commit f93b642

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

compile_rust.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ if test -n "$SHARED"; then
99
RUSTFLAGS="$RUSTFLAGS --cfg php_shared_build"
1010
fi
1111

12+
case "$OSTYPE" in
13+
darwin*)
14+
RUSTFLAGS="$RUSTFLAGS -Clink-arg=-undefined -Clink-arg=dynamic_lookup";
15+
;;
16+
esac
17+
1218
RUSTFLAGS="$RUSTFLAGS" RUSTC_BOOTSTRAP=1 "${DDTRACE_CARGO:-cargo}" build $(test "${PROFILE:-debug}" = "debug" || echo --profile "$PROFILE") "$@"

0 commit comments

Comments
 (0)