Add debuggable
product variable with cflags
Allows changing cflags based on the build variant being `eng` or `userdebug`. This is used by some modules to turn on asserts for these builds, and used by adb to allow root on non-user builds. Test: Use this flag in an Android.bp, check the ninja file. Change-Id: I27a5081378e94920482b4a742d65c46065047573
This commit is contained in:
@@ -62,6 +62,10 @@ type variableProperties struct {
|
|||||||
Binder32bit struct {
|
Binder32bit struct {
|
||||||
Cflags []string
|
Cflags []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Debuggable struct {
|
||||||
|
Cflags []string
|
||||||
|
}
|
||||||
} `android:"arch_variant"`
|
} `android:"arch_variant"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,6 +106,7 @@ type productVariables struct {
|
|||||||
Schedboost *bool `json:",omitempty"`
|
Schedboost *bool `json:",omitempty"`
|
||||||
Binder32bit *bool `json:",omitempty"`
|
Binder32bit *bool `json:",omitempty"`
|
||||||
UseGoma *bool `json:",omitempty"`
|
UseGoma *bool `json:",omitempty"`
|
||||||
|
Debuggable *bool `json:",omitempty"`
|
||||||
|
|
||||||
DevicePrefer32BitExecutables *bool `json:",omitempty"`
|
DevicePrefer32BitExecutables *bool `json:",omitempty"`
|
||||||
HostPrefer32BitExecutables *bool `json:",omitempty"`
|
HostPrefer32BitExecutables *bool `json:",omitempty"`
|
||||||
|
Reference in New Issue
Block a user