Merge "Handle Clang's change of defaults from -fcommon to -fno-common" into main am: 748f8fb624

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2713373

Change-Id: I87cfe235d8ee01409437aac0b5d6d17264ecc38a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Zijun Zhao
2023-09-13 18:00:02 +00:00
committed by Automerger Merge Worker

View File

@@ -67,10 +67,6 @@ var (
// not emit the table by default on Android since NDK still uses GNU binutils.
"-faddrsig",
// Turn on -fcommon explicitly, since Clang now defaults to -fno-common. The cleanup bug
// tracking this is http://b/151457797.
"-fcommon",
// Help catch common 32/64-bit errors.
"-Werror=int-conversion",
@@ -253,6 +249,8 @@ var (
// (anything for which IsThirdPartyPath() in build/soong/android/paths.go
// returns true - includes external/, most of vendor/ and most of hardware/)
noOverrideExternalGlobalCflags = []string{
// http://b/151457797
"-fcommon",
// http://b/191699019
"-Wno-format-insufficient-args",
// http://b/296321145