Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdb1ed82 authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "Switch clang to r353983"

parents c743c37e 6925d2b3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -174,6 +174,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
+2 −2
Original line number Diff line number Diff line
@@ -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{
+1 −2
Original line number Diff line number Diff line
@@ -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"
		}