diff --git a/.bazelrc b/.bazelrc index 6b3f100fd30e..03d5a5f7d48e 100644 --- a/.bazelrc +++ b/.bazelrc @@ -194,7 +194,7 @@ build:libc++ --define force_libcpp=enabled build:libc++20 --config=libc++ # gRPC has a lot of deprecated-enum-enum-conversion warning. Remove once it is addressed -build:libc++20 --cxxopt=-std=c++20 --copt=-Wno-error=deprecated-enum-enum-conversion +build:libc++20 --copt=-Wno-error=deprecated-enum-enum-conversion # Optimize build for binary size reduction. build:sizeopt -c opt --copt -Os diff --git a/mobile/.bazelrc b/mobile/.bazelrc index 85c2bb3e2b27..40293e7e4394 100644 --- a/mobile/.bazelrc +++ b/mobile/.bazelrc @@ -193,6 +193,8 @@ build:mobile-remote-ci-linux --config=mobile-remote-ci-common build:mobile-remote-ci-linux-clang --action_env=CC=/opt/llvm/bin/clang build:mobile-remote-ci-linux-clang --action_env=CXX=/opt/llvm/bin/clang++ build:mobile-remote-ci-linux-clang --config=mobile-remote-ci-linux +# Temporary revert to C++17 for mobile NDK builds. +build:mobile-remote-ci-linux-clang--cxxopt=-std=c++17 --host_cxxopt=-std=c++17 ############################################################################# # mobile-remote-ci-linux-asan: These options are Linux-only using Clang and AddressSanitizer diff --git a/mobile/WORKSPACE b/mobile/WORKSPACE index 8ab2f2296609..33f8ff94f634 100644 --- a/mobile/WORKSPACE +++ b/mobile/WORKSPACE @@ -89,7 +89,7 @@ load("//bazel:android_configure.bzl", "android_configure") android_configure( name = "local_config_android", build_tools_version = "30.0.2", - ndk_api_level = 26, + ndk_api_level = 21, sdk_api_level = 30, )