Merge "Add environment variable BUILD_FROM_SOURCE_STUB" into main

This commit is contained in:
Jihoon Kang
2023-11-15 16:29:12 +00:00
committed by Gerrit Code Review

View File

@@ -2079,7 +2079,7 @@ func (c *config) BuildFromTextStub() bool {
// TODO: b/302320354 - Remove the coverage build specific logic once the // TODO: b/302320354 - Remove the coverage build specific logic once the
// robust solution for handling native properties in from-text stub build // robust solution for handling native properties in from-text stub build
// is implemented. // is implemented.
return !c.buildFromSourceStub && !c.JavaCoverageEnabled() return !c.buildFromSourceStub && !c.JavaCoverageEnabled() && !c.IsEnvTrue("BUILD_FROM_SOURCE_STUB")
} }
func (c *config) SetBuildFromTextStub(b bool) { func (c *config) SetBuildFromTextStub(b bool) {