Merge "Add an __ANDROID_RAMDISK__ preprocessor define." am: 7309742728
am: 6a3b60969e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1989090 Change-Id: I0e775de22b1131c9c6dedeb2aa8fad497849c254
This commit is contained in:
@@ -406,6 +406,10 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
|
||||
flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_RECOVERY__")
|
||||
}
|
||||
|
||||
if ctx.inRecovery() || ctx.inRamdisk() || ctx.inVendorRamdisk() {
|
||||
flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_RAMDISK__")
|
||||
}
|
||||
|
||||
if ctx.apexVariationName() != "" {
|
||||
flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_APEX__")
|
||||
if ctx.Device() {
|
||||
|
Reference in New Issue
Block a user