aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-03-12 15:30:26 -0700
committerDan Willemsen <dwillemsen@google.com>2018-04-17 10:34:23 -0700
commit050ca73dbfdd360a209daf93a6f7d059a8705569 (patch)
tree3332693a54c93fb13b220f44ea3a5ea7e171a65a /cmd
parente9216117dd376aa48476c0ef448fcbd818961861 (diff)
downloadbuild_soong-050ca73dbfdd360a209daf93a6f7d059a8705569.tar.gz
build_soong-050ca73dbfdd360a209daf93a6f7d059a8705569.tar.bz2
build_soong-050ca73dbfdd360a209daf93a6f7d059a8705569.zip
Use Config/DeviceConfig functions to access ProductVariables
An upcoming change will stop exporting ProductVariables from Config, so switch to using existing accessor functions, and add more when they're missing. Bug: 76168832 Test: out/soong/build.ninja is identical Change-Id: Ie0135bdbd2df3258ef3ddb53e5f8fc00aa9b97f7 Merged-In: Ie0135bdbd2df3258ef3ddb53e5f8fc00aa9b97f7 (cherry picked from commit 3fb1faeeb98143e132ca4d6f1cac42d6f060888b)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/soong_build/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go
index 40beab8c..a4c6898d 100644
--- a/cmd/soong_build/main.go
+++ b/cmd/soong_build/main.go
@@ -36,7 +36,7 @@ func init() {
func newNameResolver(config android.Config) *android.NameResolver {
namespacePathsToExport := make(map[string]bool)
- for _, namespaceName := range config.ProductVariables.NamespacesToExport {
+ for _, namespaceName := range config.ExportedNamespaces() {
namespacePathsToExport[namespaceName] = true
}