Update clang version to clang-r510928
Bug: b/301328082 Test: N/A Change-Id: Ied250c42c33d9e2d8bd9b9161b9028874540addb
This commit is contained in:
@@ -253,6 +253,14 @@ var (
|
|||||||
// http://b/161386391 for -Wno-pointer-to-int-cast
|
// http://b/161386391 for -Wno-pointer-to-int-cast
|
||||||
"-Wno-pointer-to-int-cast",
|
"-Wno-pointer-to-int-cast",
|
||||||
"-Werror=fortify-source",
|
"-Werror=fortify-source",
|
||||||
|
// http://b/315246135 temporarily disabled
|
||||||
|
"-Wno-error=unused-variable",
|
||||||
|
// http://b/315250603 temporarily disabled
|
||||||
|
"-Wno-error=format",
|
||||||
|
// Disabled because it produces many false positives. http://b/323050926
|
||||||
|
"-Wno-missing-field-initializers",
|
||||||
|
// http://b/323050889
|
||||||
|
"-Wno-packed-non-pod",
|
||||||
|
|
||||||
"-Werror=address-of-temporary",
|
"-Werror=address-of-temporary",
|
||||||
"-Werror=incompatible-function-pointer-types",
|
"-Werror=incompatible-function-pointer-types",
|
||||||
@@ -331,6 +339,8 @@ var (
|
|||||||
|
|
||||||
"-Wno-unused",
|
"-Wno-unused",
|
||||||
"-Wno-deprecated",
|
"-Wno-deprecated",
|
||||||
|
"-Wno-tautological-negation-compare",
|
||||||
|
"-Wno-tautological-undefined-compare",
|
||||||
}
|
}
|
||||||
|
|
||||||
// Similar to noOverrideGlobalCflags, but applies only to third-party code
|
// Similar to noOverrideGlobalCflags, but applies only to third-party code
|
||||||
@@ -356,6 +366,8 @@ var (
|
|||||||
"-Wno-unqualified-std-cast-call",
|
"-Wno-unqualified-std-cast-call",
|
||||||
"-Wno-array-parameter",
|
"-Wno-array-parameter",
|
||||||
"-Wno-gnu-offsetof-extensions",
|
"-Wno-gnu-offsetof-extensions",
|
||||||
|
// TODO: Enable this warning http://b/315245071
|
||||||
|
"-Wno-fortify-source",
|
||||||
}
|
}
|
||||||
|
|
||||||
llvmNextExtraCommonGlobalCflags = []string{
|
llvmNextExtraCommonGlobalCflags = []string{
|
||||||
@@ -375,8 +387,8 @@ var (
|
|||||||
|
|
||||||
// prebuilts/clang default settings.
|
// prebuilts/clang default settings.
|
||||||
ClangDefaultBase = "prebuilts/clang/host"
|
ClangDefaultBase = "prebuilts/clang/host"
|
||||||
ClangDefaultVersion = "clang-r498229b"
|
ClangDefaultVersion = "clang-r510928"
|
||||||
ClangDefaultShortVersion = "17"
|
ClangDefaultShortVersion = "18"
|
||||||
|
|
||||||
// Directories with warnings from Android.bp files.
|
// Directories with warnings from Android.bp files.
|
||||||
WarningAllowedProjects = []string{
|
WarningAllowedProjects = []string{
|
||||||
|
@@ -29,7 +29,7 @@ var (
|
|||||||
defaultBindgenFlags = []string{""}
|
defaultBindgenFlags = []string{""}
|
||||||
|
|
||||||
// bindgen should specify its own Clang revision so updating Clang isn't potentially blocked on bindgen failures.
|
// bindgen should specify its own Clang revision so updating Clang isn't potentially blocked on bindgen failures.
|
||||||
bindgenClangVersion = "clang-r498229b"
|
bindgenClangVersion = "clang-r510928"
|
||||||
|
|
||||||
_ = pctx.VariableFunc("bindgenClangVersion", func(ctx android.PackageVarContext) string {
|
_ = pctx.VariableFunc("bindgenClangVersion", func(ctx android.PackageVarContext) string {
|
||||||
if override := ctx.Config().Getenv("LLVM_BINDGEN_PREBUILTS_VERSION"); override != "" {
|
if override := ctx.Config().Getenv("LLVM_BINDGEN_PREBUILTS_VERSION"); override != "" {
|
||||||
|
Reference in New Issue
Block a user