Deny rust warnings by default.

* "-D warnings" means "deny all warnings" and make them errors.
* Modules with warnings should fix all warnings or use
        deny_warnings: false

Bug: 141699953
Test: mm in projects with Rust modules
Change-Id: I6310dee8e34b7780937e8fc1834016a04a943a2f
This commit is contained in:
Chih-Hung Hsieh
2019-09-26 18:59:27 -07:00
parent 2784fda152
commit efdd7aca76
2 changed files with 12 additions and 1 deletions

View File

@@ -17,6 +17,8 @@ package config
import (
"strings"
"github.com/google/blueprint/proptools"
"android/soong/android"
_ "android/soong/cc/config"
)
@@ -33,6 +35,8 @@ var (
"libtest",
}
DefaultDenyWarnings = proptools.BoolPtr(true)
deviceGlobalRustFlags = []string{}
deviceGlobalLinkFlags = []string{