Support sanitizer variants inside make builds
Create both sanitized and unsanitized variants inside make builds with sanitizers enabled. Only export the sanitized version to make, and always install the sanitized version in /data to match the make build. Change-Id: I5a17bcbddc7a9d871c929c84d3c116228ef3258f
This commit is contained in:
@@ -24,6 +24,11 @@ import (
|
||||
)
|
||||
|
||||
func (c *Module) AndroidMk() (ret android.AndroidMkData, err error) {
|
||||
if c.Properties.HideFromMake {
|
||||
ret.Disabled = true
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
ret.OutputFile = c.outputFile
|
||||
ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) (err error) {
|
||||
fmt.Fprintln(w, "LOCAL_SANITIZE := never")
|
||||
|
Reference in New Issue
Block a user