Merge "Require that NDK symbol files end with .map.txt."
diff --git a/cc/ndk_library.go b/cc/ndk_library.go
index ba3ec7d..d801775 100644
--- a/cc/ndk_library.go
+++ b/cc/ndk_library.go
@@ -281,6 +281,10 @@
}
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