scx/rust/scx_utils
Tejun Heo 2af20dead9 scx_utils::BpfBuilder: Add '-target bpf' to clang_args when calling bindgen
bpf_cflags doesn't contain '-target bpf' because SkeletonBuilder does so
internally. However, bindgen doesn't and we end up specifying options which
are specific to bpf target without actually specifying the target, this
leads to warnings like the followings:

  [scx_layered 0.0.1] warning: unknown warning option '-Wno-compare-distinct-pointer-types''; did you mean '-Wno-compare-distinct-pointer-types'? [-Wunknown-warning-option]
  [scx_layered 0.0.1] clang diag: warning: argument unused during compilation: '-mcpu=v3' [-Wunused-command-line-argument]
  [scx_layered 0.0.1] clang diag: warning: unknown warning option '-Wno-compare-distinct-pointer-types''; did you mean '-Wno-compare-distinct-pointer-types'? [-Wunknown-warning-option]

Fix it by adding '-target bpf' when invoking bindgen.
2023-12-02 07:23:27 -10:00
..
src scx_utils::BpfBuilder: Add '-target bpf' to clang_args when calling bindgen 2023-12-02 07:23:27 -10:00
.gitignore rustu: Import scx_rusty and scx_layered from kernel tree 2023-11-30 13:13:41 -10:00
bpf_h scx_utils: Add mod bpf_h 2023-11-28 15:20:01 -10:00
build.rs scx_utils: Add mod bpf_h 2023-11-28 15:20:01 -10:00
Cargo.toml rustu: Import scx_rusty and scx_layered from kernel tree 2023-11-30 13:13:41 -10:00
meson.build build: rust projects now link against libbpf.a if provided 2023-12-02 06:41:26 -10:00