Skip to content

Commit 6fe24cd

Browse files
authored
Do not strip debuginfo in debug build (#499)
This seems to have changed in rust-lang/cargo#13257. Also do not install libusb-1.0 during setup. This doesn't seem necessary anymore.
1 parent 32fc71d commit 6fe24cd

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

crates/xtask/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ impl RunnerOptions {
419419
} else {
420420
rustflags.push("-C link-arg=-Tdefmt.x".to_string());
421421
rustflags.push("-C debuginfo=2".to_string());
422+
rustflags.push("-C strip=none".to_string());
422423
}
423424
}
424425
if let Some(level) = self.opt_level {

scripts/setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ fi
5656
# Transitive dependencies of xtask.
5757
ensure bin cc
5858
ensure lib libudev
59-
ensure lib libusb-1.0
6059

6160
# Transitive dependencies of runner-host. This should ideally be installed on
6261
# demand by xtask.

scripts/system.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ install() {
4949
lib)
5050
case "$2" in
5151
libudev) set libudev-dev ;;
52-
libusb-1.0) set libusb-1.0-0-dev ;;
5352
openssl) set libssl-dev ;;
5453
*) e "Internal error: apt-get install unimplemented for $*" ;;
5554
esac ;;

0 commit comments

Comments
 (0)