bindgen: set -Wno-unknown-warning-option flag by default am: 52e5e6b1a7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2975255 Change-Id: I7896590677cea14294e8eb1fdfe6c49067ea4028 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
6d48d7e1bc
1 changed files with 3 additions and 4 deletions
|
@ -263,10 +263,9 @@ func (b *bindgenDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) andr
|
|||
// clang: error: '-x c' after last input file has no effect [-Werror,-Wunused-command-line-argument]
|
||||
cflags = append(cflags, "-Wno-unused-command-line-argument")
|
||||
|
||||
// LLVM_NEXT may contain flags that bindgen doesn't recognise. Turn off unknown flags warning.
|
||||
if ctx.Config().IsEnvTrue("LLVM_NEXT") {
|
||||
cflags = append(cflags, "-Wno-unknown-warning-option")
|
||||
}
|
||||
// The Clang version used by CXX can be newer than the one used by Bindgen, and uses warning related flags that
|
||||
// it cannot recognize. Turn off unknown warning flags warning.
|
||||
cflags = append(cflags, "-Wno-unknown-warning-option")
|
||||
|
||||
outputFile := android.PathForModuleOut(ctx, b.BaseSourceProvider.getStem(ctx)+".rs")
|
||||
|
||||
|
|
Loading…
Reference in a new issue