Skip to content

Commit 1f7212b

Browse files
committed
build: generate artifacts with -Zbuild-std=std,panic_abort
1 parent 8a812db commit 1f7212b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab/build-profiler.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ echo "${CARGO_TARGET_DIR}"
4343
if [ "$thread_safety" = "zts" ]; then
4444
touch build.rs # Ensure build.rs executes after switch-php for ZTS
4545
fi
46-
cargo build --profile profiler-release
46+
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
4747
cd -
4848

4949
cp -v "${CARGO_TARGET_DIR}/profiler-release/libdatadog_php_profiling.so" "${output_file}"

0 commit comments

Comments
 (0)