From 85a92fb4d74cab603cdf489f0f49cd4428982a17 Mon Sep 17 00:00:00 2001 From: Alex Studer Date: Wed, 3 Jul 2024 15:34:50 -0400 Subject: [PATCH] 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. --- Ladybird/Android/build.gradle.kts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ladybird/Android/build.gradle.kts b/Ladybird/Android/build.gradle.kts index cd0c7075c55..8abcdd8bfee 100644 --- a/Ladybird/Android/build.gradle.kts +++ b/Ladybird/Android/build.gradle.kts @@ -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",