From 23ea59a206e038e140a3d30797e85bf8e56b5776 Mon Sep 17 00:00:00 2001 From: Zach Anderson Date: Tue, 5 Sep 2023 15:23:25 -0700 Subject: [PATCH] Adds a comment on clang_arm64_apilevel26 toolchain usage --- shell/platform/android/BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell/platform/android/BUILD.gn b/shell/platform/android/BUILD.gn index df9324c064491..49d833339ef73 100644 --- a/shell/platform/android/BUILD.gn +++ b/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)"