From 54e9d74b7af180b709091f2329e01d6c388e460d Mon Sep 17 00:00:00 2001 From: "zijiehe@" <68449066+zijiehe-google-com@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:27:05 -0700 Subject: [PATCH] [fuchsia] Use the right versioned libs according to the target-api-level (flutter/engine#55786) Except for the vulkan, target-api-level should control the versions of the other libraries rather than the ones in ToT (//fuchsia/sdk/$host_os/arch/$target_cpu/dist). FYI: @hjfreyer Bug: http://b/40935282 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/tools/fuchsia/fuchsia_libs.gni | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/src/flutter/tools/fuchsia/fuchsia_libs.gni b/engine/src/flutter/tools/fuchsia/fuchsia_libs.gni index 519b6c8744..052f1676b6 100644 --- a/engine/src/flutter/tools/fuchsia/fuchsia_libs.gni +++ b/engine/src/flutter/tools/fuchsia/fuchsia_libs.gni @@ -3,11 +3,11 @@ # found in the LICENSE file. import("//flutter/tools/fuchsia/clang.gni") +import("//flutter/tools/fuchsia/gn-sdk/src/gn_configs.gni") -fuchsia_sdk_base = "//fuchsia/sdk/$host_os/arch/$target_cpu" -fuchsia_sdk_dist = "$fuchsia_sdk_base/dist" -sysroot_lib = "$fuchsia_sdk_base/sysroot/lib" -sysroot_dist_lib = "$fuchsia_sdk_base/sysroot/dist/lib" +fuchsia_sdk_dist = "$fuchsia_arch_root/dist" +sysroot_lib = "$fuchsia_arch_root/sysroot/lib" +sysroot_dist_lib = "$fuchsia_arch_root/sysroot/dist/lib" ld_so_path = "" libcxx_so_2_path = "${clang_manifest_json.md5_19df03aecdc9eb27bc8b4038352f2b27}" @@ -85,7 +85,7 @@ if (is_asan) { ] } -vulkan_dist = "$fuchsia_sdk_base/dist" +vulkan_dist = "//fuchsia/sdk/$host_os/arch/$target_cpu/dist" # Note that the other validation libraries in the Fuchsia SDK seem to have a bug right # now causing crashes, so it is only recommended that we use