From b15a268e2945ea138679672afa14e52a5c282fe8 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Tue, 4 Feb 2025 12:53:40 +0800 Subject: Workaround build breakage due to C++/Rust LTO Interop The workaround was broken by change 21b18905fc65b0d0811a6c527e53297e05a0f5f3. Test: presubmit Bug: 392480646 Bug: 336916369 Change-Id: I8556d83635bbeccd42cd908b189c886101e075e9 --- libfdt/Android.bp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libfdt/Android.bp b/libfdt/Android.bp index 32b3b39..7bfb055 100644 --- a/libfdt/Android.bp +++ b/libfdt/Android.bp @@ -21,6 +21,11 @@ cc_defaults { "acpi.c", ], export_include_dirs: ["."], + // b/336916369: This library gets linked into a rust rlib. Disable LTO + // until cross-language lto is supported. + lto: { + never: true, + }, } cc_library { @@ -39,9 +44,4 @@ cc_library { "cc_baremetal_defaults", "libfdt_defaults", ], - // b/336916369: This library gets linked into a rust rlib. Disable LTO - // until cross-language lto is supported. - lto: { - never: true, - }, } -- cgit v1.2.3-59-g8ed1b