Merge "soong: move -Wimplicit-fallthrough from cflags to cxxflags"

am: 2d5ce8538b

Change-Id: I345c609bcbaf1cb869d60df5e505533e8111d9fe
This commit is contained in:
Nick Desaulniers
2019-11-11 09:24:19 -08:00
committed by android-build-merger

View File

@@ -101,9 +101,6 @@ func init() {
// not emit the table by default on Android since NDK still uses GNU binutils.
"-faddrsig",
// -Wimplicit-fallthrough is not enabled by -Wall.
"-Wimplicit-fallthrough",
// Help catch common 32/64-bit errors.
"-Werror=int-conversion",
@@ -138,6 +135,9 @@ func init() {
}, " "))
pctx.StaticVariable("ClangExtraCppflags", strings.Join([]string{
// -Wimplicit-fallthrough is not enabled by -Wall.
"-Wimplicit-fallthrough",
// Enable clang's thread-safety annotations in libcxx.
"-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",