From 29e54f8e75d546dc51db8bd7fc1c625c9647b616 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 9 Mar 2018 14:43:17 -0800 Subject: [PATCH] Use ld when lld fails * Android's clang lld link rules do not work with the special link order of libunwind_llvm yet. Bug: 78118944 Test: make checkbuild and boot Change-Id: Ife9707f111dfd24cb84b56754a4fc3f826f722c4 --- libmemunreachable/Android.bp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmemunreachable/Android.bp b/libmemunreachable/Android.bp index f872d0fd0..619ee3411 100644 --- a/libmemunreachable/Android.bp +++ b/libmemunreachable/Android.bp @@ -46,6 +46,12 @@ cc_library { static_libs: ["libunwind_llvm"], }, }, + + // TODO(b/78118944), clang lld link flags do not work with special link + // rules for libunwind_llvm yet. Linked aosp_arm-eng image failed to + // boot up in the emulator. + use_clang_lld: false, + export_include_dirs: ["include"], local_include_dirs: ["include"], }