Expose the minimum supported SDK version to make.
Right now this is hard coded in two places (here and in core/binary.mk). Keep it in one place so it's easier to change. Test: make checkbuild Bug: None Change-Id: I2a2c784d4c667b326f871e6144db92753c16c85f
This commit is contained in:
2
cc/cc.go
2
cc/cc.go
@@ -638,7 +638,7 @@ func (c *Module) begin(ctx BaseModuleContext) {
|
||||
feature.begin(ctx)
|
||||
}
|
||||
if ctx.sdk() {
|
||||
version, err := normalizeNdkApiLevel(ctx.sdkVersion(), ctx.Arch())
|
||||
version, err := normalizeNdkApiLevel(ctx, ctx.sdkVersion(), ctx.Arch())
|
||||
if err != nil {
|
||||
ctx.PropertyErrorf("sdk_version", err.Error())
|
||||
}
|
||||
|
Reference in New Issue
Block a user