Update clang version to clang-r487747

Test: presubmit
Bug: 264965700
Change-Id: I2db879f4dcc77b606c788b3e3890ed2a3faa6594
This commit is contained in:
Yi Kong
2023-02-16 17:42:27 +09:00
parent c2e385cc4c
commit 836690b593
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{