aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2017-06-13 15:14:56 -0700
committerDan Albert <danalbert@google.com>2017-06-13 15:14:56 -0700
commit15be0c6a367b81e566bb3a710e6c82b4372c783b (patch)
tree3a9c77e40dd03b64912f9c574d16e6087e41daca /cc
parentaac67d38b290e786f294b4c41c9f3a527efe7dda (diff)
downloadbuild_soong-15be0c6a367b81e566bb3a710e6c82b4372c783b.tar.gz
build_soong-15be0c6a367b81e566bb3a710e6c82b4372c783b.tar.bz2
build_soong-15be0c6a367b81e566bb3a710e6c82b4372c783b.zip
Require that NDK symbol files end with .map.txt.
We're making an NDK API Council +1 a requirment for changes to these files, so we need to know that all symbol files will match a given file pattern. Test: Changed a symbol file to foo.txt, `make ndk` failed Test: make ndk Bug: http://b/35870541 Change-Id: I29690fb97746ad682e57845fea3f1114cfd77598
Diffstat (limited to 'cc')
-rw-r--r--cc/ndk_library.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/ndk_library.go b/cc/ndk_library.go
index ba3ec7d2..d801775c 100644
--- a/cc/ndk_library.go
+++ b/cc/ndk_library.go
@@ -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