Merge "Use IsEnvTrue for USE_BAZEL_ANALYSIS check." am: 2d16ec5af7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1738873 Change-Id: Ice8ab71e72469b84e8af5b38ae537bd71fe71783
This commit is contained in:
@@ -205,7 +205,7 @@ func (m noopBazelContext) BuildStatementsToRegister() []bazel.BuildStatement {
|
|||||||
func NewBazelContext(c *config) (BazelContext, error) {
|
func NewBazelContext(c *config) (BazelContext, error) {
|
||||||
// TODO(cparsons): Assess USE_BAZEL=1 instead once "mixed Soong/Bazel builds"
|
// TODO(cparsons): Assess USE_BAZEL=1 instead once "mixed Soong/Bazel builds"
|
||||||
// are production ready.
|
// are production ready.
|
||||||
if c.Getenv("USE_BAZEL_ANALYSIS") != "1" {
|
if !c.IsEnvTrue("USE_BAZEL_ANALYSIS") {
|
||||||
return noopBazelContext{}, nil
|
return noopBazelContext{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user