Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c1958f0 authored by Jihoon Kang's avatar Jihoon Kang
Browse files

Add environment variable BUILD_FROM_SOURCE_STUB

On top of the soong build flag --build-from-source-stub, the user can
configure build to generate stubs from source Java files by setting the
environment variable BUILD_FROM_SOURCE_STUB=true.

Test: m nothing
Bug: 310279899
Change-Id: I0c5247558455f09b8fc208d988aab3b60bf0ff16
parent 2f634573
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2079,7 +2079,7 @@ func (c *config) BuildFromTextStub() bool {
	// TODO: b/302320354 - Remove the coverage build specific logic once the
	// robust solution for handling native properties in from-text stub build
	// is implemented.
	return !c.buildFromSourceStub && !c.JavaCoverageEnabled()
	return !c.buildFromSourceStub && !c.JavaCoverageEnabled() && !c.IsEnvTrue("BUILD_FROM_SOURCE_STUB")
}

func (c *config) SetBuildFromTextStub(b bool) {