This repository has been archived by the owner on Mar 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make build.rs notice when kernel-cflags-finder has failed
If we get an error out of kernel-cflags-finder, we should fail early instead of continuing the build. Also, suppress one Clang warning class (unknown -W flags, see e.g. torvalds/linux@9df3e7a7 - in a real clang build these wouldn't be present but in a clang-modules-on-gcc-kernel build it shows up) to get kernel-cflags-finder exiting cleanly on 4.20+. Also rerun the build script if kernel-cflags-finder/Makefile has changed, or if $CLANG, which it and bindgen both use, have changed.
- Loading branch information
Showing
2 changed files
with
18 additions
and
13 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