Merge "Update clang version to clang-r487747"

This commit is contained in:
Yi Kong
2023-03-01 05:02:15 +00:00
committed by Gerrit Code Review
2 changed files with 12 additions and 2 deletions

View File

@@ -1363,6 +1363,11 @@ func (c *deviceConfig) NativeCoverageEnabledForPath(path string) bool {
}
}
if coverage && len(c.config.productVariables.NativeCoverageExcludePaths) > 0 {
// Workaround coverage boot failure.
// http://b/269981180
if strings.HasPrefix(path, "external/protobuf") {
coverage = false
}
if HasAnyPrefix(path, c.config.productVariables.NativeCoverageExcludePaths) {
coverage = false
}

View File

@@ -192,6 +192,10 @@ var (
}
noOverrideGlobalCflags = []string{
// Workaround for boot loop caused by stack protector.
// http://b/267839238
"-mllvm -disable-check-noreturn-call",
"-Werror=bool-operation",
"-Werror=implicit-int-float-conversion",
"-Werror=int-in-bool-context",
@@ -253,6 +257,7 @@ var (
"-Wno-bitwise-instead-of-logical",
"-Wno-misleading-indentation",
"-Wno-array-parameter",
"-Wno-gnu-offsetof-extensions",
}
// Extra cflags for external third-party projects to disable warnings that
@@ -305,8 +310,8 @@ var (
// prebuilts/clang default settings.
ClangDefaultBase = "prebuilts/clang/host"
ClangDefaultVersion = "clang-r475365b"
ClangDefaultShortVersion = "16.0.2"
ClangDefaultVersion = "clang-r487747"
ClangDefaultShortVersion = "17"
// Directories with warnings from Android.bp files.
WarningAllowedProjects = []string{