8 Commits

Author SHA1 Message Date
Dmitri Makarov
ed37cfed1c Update RUSTFLAGS if it is set, instead of overriding in build-bpf 2021-09-25 22:11:58 -04:00
Dmitri Makarov
8f1a08e15c Remove O2 option for compiling BPF programs (#17865)
rustc default compiler optimization level is O3. This change removes
the option that overrides the default optimization level, because it
is safe to do so.  The code generation is incorrect in some cases
because of link-time optimizations, which remain disabled for
compiling BPF programs.  In addition, this commit updates the expected
instruction counts for assert_instruction_count test.
2021-09-25 22:11:58 -04:00
Dmitri Makarov
77e6cd35ee Add BPF rustc option to reduce the optimizations to safer level (#17590) 2021-09-25 22:11:58 -04:00
Dmitri Makarov
9bc20a8cbb Bump bpf-tools version to 1.8 2021-09-25 22:11:58 -04:00
Dmitri Makarov
34213da9f4 Bump bpf-tools to v1.2 and get rid of xargo 2021-03-24 11:59:59 +01:00
Dmitri Makarov
c5a5d7457e Bump bpf-tools to v1.1 (#15776) 2021-03-10 18:13:38 +01:00
Jack May
48785b507b Bump Rust-BPF to v1.46 (#15273) 2021-02-18 11:30:08 -08:00
Michael Vines
07a853d6cc Add cargo-build-bpf 2020-10-21 18:56:40 -07:00