-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf-cargo: return stderr from clang
Update `build_and_generate` to return a `CompilationOutput` owning the stderr of the compiler process. This gives consumers access to the stderr to output as they see fit. Provides a `stderr` method that calls `String::from_utf8_lossy`. The primary consumer is `sched-ext/scx` which outputs each line with `println!("cargo:warning={}", l)`, showing the warnings quite nicely in the Cargo output when there isn't an error. Test plan: - Pointed that Cargo.lock at this repo and built.
- Loading branch information
1 parent
aff9d72
commit 9aac71c
Showing
2 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters