refactor: replace LD_PRELOAD with a baked-in solution

This commit is contained in:
Christian Schwarz
2023-03-30 15:28:58 +02:00
parent d5b8f123ec
commit 140ef67dd8
12 changed files with 267 additions and 284 deletions

View File

@@ -240,7 +240,7 @@ jobs:
- name: Run cargo build
run: |
${cov_prefix} mold -run cargo build $CARGO_FLAGS
${cov_prefix} mold -run cargo build $CARGO_FLAGS --bins --tests
- name: Run cargo test
run: |
@@ -260,16 +260,6 @@ jobs:
cp "$SRC" "$DST"
done
cdylibs=$(
${cov_prefix} cargo metadata $CARGO_FEATURES --format-version=1 --no-deps |
jq -r '.packages[].targets[] | select(.kind | index("cdylib")) | .name'
)
for lib in $cdylibs; do
SRC=target/$BUILD_TYPE/lib$lib.so
DST=/tmp/neon/bin/lib$lib.so
cp "$SRC" "$DST"
done
# Install test executables and write list of all binaries (for code coverage)
if [[ $BUILD_TYPE == "debug" ]]; then
# Keep bloated coverage data files away from the rest of the artifact