aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-07-07 20:41:36 -0700
committerDan Willemsen <dwillemsen@google.com>2016-07-07 21:38:29 -0700
commit3c316bc03bb21fa047f4db536fda8aeeba193266 (patch)
tree76bafceabe7b2943e1f2b4431605a55d22c7b60f /cc
parent687106282174c1ffc2d3b22eabb3e537aa20a728 (diff)
downloadbuild_soong-3c316bc03bb21fa047f4db536fda8aeeba193266.tar.gz
build_soong-3c316bc03bb21fa047f4db536fda8aeeba193266.tar.bz2
build_soong-3c316bc03bb21fa047f4db536fda8aeeba193266.zip
Fix SDK link type check
This was always returning true, which defeats the point. Fix the check, then add another exception for NDK libraries. Change-Id: I139d95ef62d1063c083d6381293072ad3277ae74
Diffstat (limited to 'cc')
-rw-r--r--cc/cc.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 66b7b4f2..8206912b 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -928,7 +928,11 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
// These are allowed, but don't set sdk_version
return true
}
- return from.Properties.Sdk_version != ""
+ if _, ok := to.linker.(*ndkPrebuiltStlLinker); ok {
+ // These are allowed, but don't set sdk_version
+ return true
+ }
+ return to.Properties.Sdk_version != ""
}
ctx.VisitDirectDeps(func(m blueprint.Module) {