summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Peter Collingbourne <pcc@google.com> 2018-11-08 19:55:28 -0800
committer Peter Collingbourne <pcc@google.com> 2018-11-08 20:13:16 -0800
commitabde584fd1eb9bed4102be623a2b948d98e04ffb (patch)
tree67f233db37a0e2bdaf995d0550eed822ddc315ac
parentec2f6cba80a696b707560704fd0ae241302f63ff (diff)
Stop passing the gold plugin path to llvm-ar.
llvm-ar takes a --plugin argument but it is ignored for compatibility, so passing it has no effect. Change-Id: I4fc51d226d66cf2a43462d3d4ccc12e6e5ebb226
-rw-r--r--cc/builder.go4
-rw-r--r--cc/cc.go1
-rw-r--r--cc/config/global.go6
-rw-r--r--cc/lto.go2
-rw-r--r--cc/sanitize.go1
-rw-r--r--cc/util.go1
6 files changed, 0 insertions, 15 deletions
diff --git a/cc/builder.go b/cc/builder.go
index 3d125381f..6d5b59594 100644
--- a/cc/builder.go
+++ b/cc/builder.go
@@ -247,7 +247,6 @@ type builderFlags struct {
systemIncludeFlags string
groupStaticLibs bool
- arGoldPlugin bool
stripKeepSymbols bool
stripKeepMiniDebugInfo bool
@@ -485,9 +484,6 @@ func TransformObjToStaticLib(ctx android.ModuleContext, objFiles android.Paths,
if !ctx.Darwin() {
arFlags += " -format=gnu"
}
- if flags.arGoldPlugin {
- arFlags += " --plugin ${config.LLVMGoldPlugin}"
- }
if flags.arFlags != "" {
arFlags += " " + flags.arFlags
}
diff --git a/cc/cc.go b/cc/cc.go
index 05695637a..fcd8a4537 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -157,7 +157,6 @@ type Flags struct {
LdFlagsDeps android.Paths // Files depended on by linker flags
GroupStaticLibs bool
- ArGoldPlugin bool // Whether LLVM gold plugin option is passed to llvm-ar
}
type ObjectLinkerProperties struct {
diff --git a/cc/config/global.go b/cc/config/global.go
index 057e08a23..d4f86b8cc 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -15,7 +15,6 @@
package config
import (
- "runtime"
"strings"
"android/soong/android"
@@ -211,11 +210,6 @@ func init() {
return ClangDefaultShortVersion
})
pctx.StaticVariable("ClangAsanLibDir", "${ClangBase}/linux-x86/${ClangVersion}/lib64/clang/${ClangShortVersion}/lib/linux")
- if runtime.GOOS == "darwin" {
- pctx.StaticVariable("LLVMGoldPlugin", "${ClangPath}/lib64/LLVMgold.dylib")
- } else {
- pctx.StaticVariable("LLVMGoldPlugin", "${ClangPath}/lib64/LLVMgold.so")
- }
// These are tied to the version of LLVM directly in external/llvm, so they might trail the host prebuilts
// being used for the rest of the build process.
diff --git a/cc/lto.go b/cc/lto.go
index 52b9a34d2..630274868 100644
--- a/cc/lto.go
+++ b/cc/lto.go
@@ -105,8 +105,6 @@ func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
flags.LdFlags = append(flags.LdFlags, cachePolicyFormat+policy)
}
- flags.ArGoldPlugin = true
-
// If the module does not have a profile, be conservative and do not inline
// or unroll loops during LTO, in order to prevent significant size bloat.
if !ctx.isPgoCompile() && !lto.useClangLld(ctx) {
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 330a5e3a7..cd3b3e901 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -466,7 +466,6 @@ func (sanitize *sanitize) flags(ctx ModuleContext, flags Flags) Flags {
flags.CFlags = append(flags.CFlags, "-fvisibility=default")
}
flags.LdFlags = append(flags.LdFlags, cfiLdflags...)
- flags.ArGoldPlugin = true
if Bool(sanitize.Properties.Sanitize.Diag.Cfi) {
diagSanitizers = append(diagSanitizers, "cfi")
}
diff --git a/cc/util.go b/cc/util.go
index 1412d5441..c900423bb 100644
--- a/cc/util.go
+++ b/cc/util.go
@@ -86,7 +86,6 @@ func flagsToBuilderFlags(in Flags) builderFlags {
systemIncludeFlags: strings.Join(in.SystemIncludeFlags, " "),
groupStaticLibs: in.GroupStaticLibs,
- arGoldPlugin: in.ArGoldPlugin,
}
}