Merge "Require that NDK symbol files end with .map.txt."

This commit is contained in:
Treehugger Robot 2017-06-14 00:21:43 +00:00 committed by Gerrit Code Review
commit 2a60959b65
1 changed files with 4 additions and 0 deletions

View File

@ -281,6 +281,10 @@ func compileStubLibrary(ctx ModuleContext, flags Flags, symbolFile, apiLevel, vn
}
func (c *stubDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) Objects {
if !strings.HasSuffix(c.properties.Symbol_file, ".map.txt") {
ctx.PropertyErrorf("symbol_file", "must end with .map.txt")
}
objs, versionScript := compileStubLibrary(ctx, flags, c.properties.Symbol_file, c.properties.ApiLevel, "")
c.versionScriptPath = versionScript
return objs