Merge "Switch clang to r353983" am: bdb1ed828d
am: cc6ac6647f
am: d182fd4f26
Change-Id: I0daabff1c4ed0045115fb8fd2c7ef6542742518a
This commit is contained in:
commit
35badd74bf
3 changed files with 7 additions and 4 deletions
|
@ -169,6 +169,10 @@ func init() {
|
|||
|
||||
// Disable this warning because we don't care about behavior with older compilers.
|
||||
"-Wno-return-std-move-in-c++11",
|
||||
|
||||
// Disable -Wstring-plus-int until the instances detected by this new warning is
|
||||
// fixed.
|
||||
"-Wno-string-plus-int",
|
||||
}, " "))
|
||||
|
||||
// Extra cflags for projects under external/ directory to disable warnings that are infeasible
|
||||
|
|
|
@ -120,8 +120,8 @@ var (
|
|||
|
||||
// prebuilts/clang default settings.
|
||||
ClangDefaultBase = "prebuilts/clang/host"
|
||||
ClangDefaultVersion = "clang-r349610"
|
||||
ClangDefaultShortVersion = "8.0.8"
|
||||
ClangDefaultVersion = "clang-r353983"
|
||||
ClangDefaultShortVersion = "9.0.1"
|
||||
|
||||
// Directories with warnings from Android.bp files.
|
||||
WarningAllowedProjects = []string{
|
||||
|
|
|
@ -83,8 +83,7 @@ func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
|
|||
if lto.LTO() {
|
||||
var ltoFlag string
|
||||
if Bool(lto.Properties.Lto.Thin) {
|
||||
ltoFlag = "-flto=thin"
|
||||
|
||||
ltoFlag = "-flto=thin -fsplit-lto-unit"
|
||||
} else {
|
||||
ltoFlag = "-flto"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue