Skip to content

Commit 8de3b1f

Browse files
iamlucrealFlowControl
authored andcommitted
Fix compilation on macOs (#2613)
1 parent d4a7122 commit 8de3b1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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 "${host_os}" 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)