aboutsummaryrefslogtreecommitdiffstats
path: root/cc/cc.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-07-22 13:40:59 -0700
committerDan Willemsen <dwillemsen@google.com>2016-07-22 13:41:24 -0700
commit627d83db71a40081fcb88cd955a5952fe5a384d6 (patch)
treefcacce90db9877a4269204a3ad4af9b74997f6f4 /cc/cc.go
parentbdf36579911b1e1dd4f8897276dc804ae6f63401 (diff)
downloadbuild_soong-627d83db71a40081fcb88cd955a5952fe5a384d6.tar.gz
build_soong-627d83db71a40081fcb88cd955a5952fe5a384d6.tar.bz2
build_soong-627d83db71a40081fcb88cd955a5952fe5a384d6.zip
Limit unique_host_soname to just host modules
Change-Id: I41d050806a27473abb3788de43b7bf67f5d049a8
Diffstat (limited to 'cc/cc.go')
-rw-r--r--cc/cc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 6054bc4c..51760fca 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -1611,7 +1611,7 @@ func (library *libraryLinker) props() []interface{} {
func (library *libraryLinker) getLibName(ctx ModuleContext) string {
name := ctx.ModuleName()
- if Bool(library.Properties.Unique_host_soname) {
+ if ctx.Host() && Bool(library.Properties.Unique_host_soname) {
if !strings.HasSuffix(name, "-host") {
name = name + "-host"
}