aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-10-21 19:47:01 -0700
committerDan Willemsen <dwillemsen@google.com>2018-10-21 19:54:12 -0700
commitfa2aee1ca4cd07afaeaf669f96f6ecc4e66b9a1d (patch)
tree265e3cdc64451212288730dd821dce73605dffe3
parent6f03752422c466bec6c618cea7e4d77aac95ab69 (diff)
downloadbuild_soong-fa2aee1ca4cd07afaeaf669f96f6ecc4e66b9a1d.tar.gz
build_soong-fa2aee1ca4cd07afaeaf669f96f6ecc4e66b9a1d.tar.bz2
build_soong-fa2aee1ca4cd07afaeaf669f96f6ecc4e66b9a1d.zip
Remove USE_CLANG_LLD[=false]
This should always be true now. It will be a change for side branches (build_tools, etc) that weren't setting UseClangLld in the soong.variables file. Test: treehugger Change-Id: I9fd6157fda630bf8bb939677dbcb026f02685f19
-rw-r--r--android/config.go4
-rw-r--r--android/variable.go2
-rw-r--r--cc/linker.go2
-rw-r--r--cc/lto.go2
4 files changed, 2 insertions, 8 deletions
diff --git a/android/config.go b/android/config.go
index 5da1e0bd..bea6f603 100644
--- a/android/config.go
+++ b/android/config.go
@@ -646,10 +646,6 @@ func (c *config) TargetOpenJDK9() bool {
return c.targetOpenJDK9
}
-func (c *config) UseClangLld() bool {
- return Bool(c.productVariables.UseClangLld)
-}
-
func (c *config) ClangTidy() bool {
return Bool(c.productVariables.ClangTidy)
}
diff --git a/android/variable.go b/android/variable.go
index 8faeb037..476171bf 100644
--- a/android/variable.go
+++ b/android/variable.go
@@ -201,8 +201,6 @@ type productVariables struct {
ProductPath *string `json:",omitempty"`
ProductServicesPath *string `json:",omitempty"`
- UseClangLld *bool `json:",omitempty"`
-
ClangTidy *bool `json:",omitempty"`
TidyChecks *string `json:",omitempty"`
diff --git a/cc/linker.go b/cc/linker.go
index 2e1828ab..28f47477 100644
--- a/cc/linker.go
+++ b/cc/linker.go
@@ -289,7 +289,7 @@ func (linker *baseLinker) useClangLld(ctx ModuleContext) bool {
if linker.Properties.Use_clang_lld != nil {
return Bool(linker.Properties.Use_clang_lld)
}
- return ctx.Config().UseClangLld()
+ return true
}
// ModuleContext extends BaseModuleContext
diff --git a/cc/lto.go b/cc/lto.go
index fd2a8694..52b9a34d 100644
--- a/cc/lto.go
+++ b/cc/lto.go
@@ -76,7 +76,7 @@ func (lto *lto) useClangLld(ctx BaseModuleContext) bool {
if lto.Properties.Use_clang_lld != nil {
return Bool(lto.Properties.Use_clang_lld)
}
- return ctx.Config().UseClangLld()
+ return true
}
func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {