mirror of https://github.com/aya-rs/aya
Enable unwinding in userspace
Unwinding gives us more information, so we shouldn't disable it globally. It is already disabled for BPF targets via the target configs in rustc itself. This complicates the clippy invocation somewhat, so put it in a shell script for developer as well as CI use.reviewable/pr1101/r8
parent
1de7e728b6
commit
fd00b39f09
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# `-C panic=abort` because "unwinding panics are not supported without std";
|
||||
# integration-ebpf contains `#[no_std]` binaries.
|
||||
#
|
||||
# `-Zpanic_abort_tests` because "building tests with panic=abort is not supported without
|
||||
# `-Zpanic_abort_tests`"; Cargo does this automatically when panic=abort is set via profile
|
||||
# but we want to preserve unwinding at runtime - here we are just running clippy so we don't
|
||||
# care about unwinding behavior.
|
||||
#
|
||||
# `+nightly` because "the option `Z` is only accepted on the nightly compiler".
|
||||
exec cargo +nightly hack clippy "$@" --all-targets --feature-powerset --workspace -- --deny warnings -C panic=abort -Zpanic_abort_tests
|
@ -1,12 +0,0 @@
|
||||
# We have this so that one doesn't need to manually pass
|
||||
# --target=bpfel-unknown-none -Z build-std=core when running cargo
|
||||
# check/build/doc etc.
|
||||
#
|
||||
# NB: this file gets loaded only if you run cargo from this directory, it's
|
||||
# ignored if you run from the workspace root. See
|
||||
# https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure
|
||||
[build]
|
||||
target = ["bpfeb-unknown-none", "bpfel-unknown-none"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["core"]
|
Loading…
Reference in New Issue