Add USE_CLANG_LLD and use_clang_lld. am: 02b4da53a7

am: 98fda157fb

Change-Id: I3fc25e6332ae02dc4736e1f77b6de52822968d80
This commit is contained in:
Chih-Hung Hsieh
2018-04-13 12:44:15 -07:00
committed by android-build-merger
20 changed files with 178 additions and 4 deletions

View File

@@ -87,12 +87,20 @@ var (
"-Wl,--no-undefined-version",
}
deviceGlobalLldflags = append(ClangFilterUnknownLldflags(deviceGlobalLdflags),
[]string{
"-Wl,--pack-dyn-relocs=android",
"-fuse-ld=lld",
}...)
hostGlobalCflags = []string{}
hostGlobalCppflags = []string{}
hostGlobalLdflags = []string{}
hostGlobalLldflags = []string{}
commonGlobalCppflags = []string{
"-Wsign-promo",
}
@@ -141,9 +149,11 @@ func init() {
pctx.StaticVariable("DeviceGlobalCflags", strings.Join(deviceGlobalCflags, " "))
pctx.StaticVariable("DeviceGlobalCppflags", strings.Join(deviceGlobalCppflags, " "))
pctx.StaticVariable("DeviceGlobalLdflags", strings.Join(deviceGlobalLdflags, " "))
pctx.StaticVariable("DeviceGlobalLldflags", strings.Join(deviceGlobalLldflags, " "))
pctx.StaticVariable("HostGlobalCflags", strings.Join(hostGlobalCflags, " "))
pctx.StaticVariable("HostGlobalCppflags", strings.Join(hostGlobalCppflags, " "))
pctx.StaticVariable("HostGlobalLdflags", strings.Join(hostGlobalLdflags, " "))
pctx.StaticVariable("HostGlobalLldflags", strings.Join(hostGlobalLldflags, " "))
pctx.StaticVariable("NoOverrideGlobalCflags", strings.Join(noOverrideGlobalCflags, " "))
pctx.StaticVariable("CommonGlobalCppflags", strings.Join(commonGlobalCppflags, " "))