From 4114791b5fcd8522d656963b8c31ba4853b7ddac Mon Sep 17 00:00:00 2001 From: Christopher Sauer Date: Mon, 14 Nov 2022 23:31:37 -0800 Subject: [PATCH] Switch default standard to C++20 (+gnu extensions) --- ndk_cc_toolchain_config.bzl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ndk_cc_toolchain_config.bzl b/ndk_cc_toolchain_config.bzl index 7cfebd2..9296cf3 100644 --- a/ndk_cc_toolchain_config.bzl +++ b/ndk_cc_toolchain_config.bzl @@ -650,8 +650,7 @@ def ndk_cc_toolchain_config( flag_set( actions = actions.all_cpp_compile, flags = [ - "-std=gnu++17", - "-Wc++2a-extensions", + "-std=gnu++20", "-Woverloaded-virtual", "-Wnon-virtual-dtor", "-Wno-deprecated",