Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ members = [

[profile.release]
lto = "thin"
debug = true
# Per https://fasterthanli.me/articles/why-is-my-rust-build-so-slow:
# In Cargo.toml, debug = true actually means debug = 2, and it's usually overkill,
# unless you're doing the sort of debugging where you need to be able to inspect
# the value of local variables for example.
# If all you're after is a stack trace, debug = 1 is good enough.
debug = 1
7 changes: 7 additions & 0 deletions src/ci/agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ echo "Checking dependencies of binaries"

"$script_dir/check-dependencies.sh"

if [ "$(uname)" == 'Linux' ]; then
echo "Compressing debug symbols"
objcopy --compress-debug-sections target/release/onefuzz-task
objcopy --compress-debug-sections target/release/onefuzz-agent
objcopy --compress-debug-sections target/release/srcview
fi

echo "Copying artifacts to $output_dir"

cp target/release/onefuzz-task* "$output_dir"
Expand Down