From b672497bc964a6fbb4e7f1f774e13df55e01542a Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Tue, 5 Sep 2023 15:56:47 -0700 Subject: [PATCH] Adds a comment on clang_arm64_apilevel26 toolchain usage (flutter/engine#45467) Companion comment to the one in https://github.com/flutter/buildroot/pull/761 --- engine/src/flutter/shell/platform/android/BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/engine/src/flutter/shell/platform/android/BUILD.gn b/engine/src/flutter/shell/platform/android/BUILD.gn index df9324c064..49d833339e 100644 --- a/engine/src/flutter/shell/platform/android/BUILD.gn +++ b/engine/src/flutter/shell/platform/android/BUILD.gn @@ -492,6 +492,11 @@ action("android_jar") { if (enable_vulkan_validation_layers) { assert(impeller_enable_vulkan) + + # We use a different toolchain here so that vulkan validation layers are + # built against API level 26, which they require, rather than the default. + # This is safe because the Engine can do a version check before loading the + # .so for the validation layers. apilevel26_toolchain = "//build/toolchain/android:clang_arm64_apilevel26" validation_layer_target = "//third_party/vulkan_validation_layers($apilevel26_toolchain)"