Android: Update C++ standard flag

The current version of the Android NDK uses Clang 17, which uses the
name c++2b instead of c++23.

This is the same flag we use in Meta/gn/build/BUILD.gn for macOS.
This commit is contained in:
Alex Studer 2024-07-03 15:34:50 -04:00 committed by Andrew Kaster
parent d1788a7a02
commit 85a92fb4d7

View File

@ -34,7 +34,8 @@ android {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags += "-std=c++23"
// FIXME: Use -std=c++23 once the Android NDK's clang supports that.
cppFlags += "-std=c++2b"
arguments += listOf(
"-DLagomTools_DIR=$buildDir/lagom-tools-install/share/LagomTools",
"-DSERENITY_CACHE_DIR=$cacheDir",