diff options
author | Jiyong Park <jiyong@google.com> | 2019-02-05 22:33:10 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2019-02-06 22:40:29 +0900 |
commit | 47e4fcb6d32debdcdd7934f52bc08e1b1a963ab3 (patch) | |
tree | c3f5469b32aa1886f850190ac8e4965071e4f62b /cc/androidmk.go | |
parent | cc2d11961caeb97900f34d5667aaa12bc91b7341 (diff) | |
download | build_soong-47e4fcb6d32debdcdd7934f52bc08e1b1a963ab3.tar.gz build_soong-47e4fcb6d32debdcdd7934f52bc08e1b1a963ab3.tar.bz2 build_soong-47e4fcb6d32debdcdd7934f52bc08e1b1a963ab3.zip |
Don't emit symbol for stubs libraries
The stubs libraries are buildtime-only artifacts. Since they are not
used at runtime, no need to emit symbol files for them
Test: m
Change-Id: I54410e9289b4bf61e23581386b56ade8fba18dfa
Diffstat (limited to 'cc/androidmk.go')
-rw-r--r-- | cc/androidmk.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/androidmk.go b/cc/androidmk.go index 0e4245ef..fc791fe5 100644 --- a/cc/androidmk.go +++ b/cc/androidmk.go @@ -152,7 +152,9 @@ func (library *libraryDecorator) AndroidMk(ctx AndroidMkContext, ret *android.An ret.Class = "SHARED_LIBRARIES" ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) { fmt.Fprintln(w, "LOCAL_SOONG_TOC :=", library.toc().String()) - fmt.Fprintln(w, "LOCAL_SOONG_UNSTRIPPED_BINARY :=", library.unstrippedOutputFile.String()) + if !library.buildStubs() { + fmt.Fprintln(w, "LOCAL_SOONG_UNSTRIPPED_BINARY :=", library.unstrippedOutputFile.String()) + } if len(library.Properties.Overrides) > 0 { fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES := "+strings.Join(library.Properties.Overrides, " ")) } |