Open connorworley opened 1 year ago
To the degree I can tell the headers will be extracted somewhere below the target directory. How you set that is up to you and depends on how you generate the bindings. Please show the complete working example if that doesn't help.
Refer to https://github.com/libbpf/libbpf-rs/blob/aacaec1b7dfaa4bf9112d2f4168d77dfceee499f/libbpf-cargo/src/build.rs#L292-L293 -- the headers are extracted to a temporary directory.
I'd like to run clang-tidy on my C code. I can add a clang arg to generate compilation command JSON, but it ends up referring to temporary include paths:
It would be nice if there was a way to extract these vendored headers to a stable path such that they still exist when I run clang-tidy.