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

Commit 08cc1418 authored by Kyriakos Ispoglou's avatar Kyriakos Ispoglou Committed by Gerrit Code Review
Browse files

Merge "Add support for LINE_COVERAGE (1/2)"

parents 026ffecb db03c22e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1028,8 +1028,12 @@ func (c *deviceConfig) DeviceKernelHeaderDirs() []string {
	return c.config.productVariables.DeviceKernelHeaders
}

func (c *config) NativeLineCoverage() bool {
	return Bool(c.productVariables.NativeLineCoverage)
}

func (c *deviceConfig) NativeCoverageEnabled() bool {
	return Bool(c.config.productVariables.Native_coverage)
	return Bool(c.config.productVariables.Native_coverage) || Bool(c.config.productVariables.NativeLineCoverage)
}

func (c *deviceConfig) ClangCoverageEnabled() bool {
+1 −0
Original line number Diff line number Diff line
@@ -252,6 +252,7 @@ type productVariables struct {
	ClangTidy  *bool   `json:",omitempty"`
	TidyChecks *string `json:",omitempty"`

	NativeLineCoverage   *bool    `json:",omitempty"`
	Native_coverage      *bool    `json:",omitempty"`
	ClangCoverage        *bool    `json:",omitempty"`
	CoveragePaths        []string `json:",omitempty"`