Skip to content
4 changes: 2 additions & 2 deletions .gitlab/build-profiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ echo "${CARGO_TARGET_DIR}"
if [ "$thread_safety" = "zts" ]; then
touch build.rs # Ensure build.rs executes after switch-php for ZTS
fi
cargo build --profile profiler-release
RUSTFLAGS="-L native=$(dirname "$(gcc -print-file-name=libssp_nonshared.a)")" RUSTC_BOOTSTRAP=1 cargo build -Zbuild-std=std,panic_abort --target "${TRIPLET:?}" --profile profiler-release
cd -

cp -v "${CARGO_TARGET_DIR}/profiler-release/libdatadog_php_profiling.so" "${output_file}"
cp -v "${CARGO_TARGET_DIR}/${TRIPLET}/profiler-release/libdatadog_php_profiling.so" "${output_file}"
objcopy --compress-debug-sections "${output_file}"
Loading