From a494bbb6ec44a723703951a061c2adde5bca6852 Mon Sep 17 00:00:00 2001 From: "Hsia-Jun(Randy) Li" Date: Wed, 4 Aug 2021 17:12:31 +0800 Subject: clang: support android runtime Signed-off-by: Hsia-Jun(Randy) Li --- classes/clang.bbclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'classes/clang.bbclass') diff --git a/classes/clang.bbclass b/classes/clang.bbclass index 177a9e4..3db7036 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass @@ -95,15 +95,16 @@ def clang_base_deps(d): if not d.getVar('INHIBIT_DEFAULT_DEPS', False): if not oe.utils.inherits(d, 'allarch') : ret = " clang-cross-${TARGET_ARCH} virtual/libc " + if (d.getVar('RUNTIME').find('android') != -1): + ret += " libcxx" + return ret if (d.getVar('RUNTIME').find('llvm') != -1): ret += " compiler-rt libcxx" elif (d.getVar('COMPILER_RT').find('-rtlib=compiler-rt') != -1): ret += " compiler-rt " else: ret += " libgcc " - if (d.getVar('RUNTIME').find('llvm') != -1): - ret += " libcxx" - elif (d.getVar('COMPILER_RT').find('--unwindlib=libunwind') != -1): + if (d.getVar('COMPILER_RT').find('--unwindlib=libunwind') != -1): ret += " libcxx " elif (d.getVar('LIBCPLUSPLUS').find('-stdlib=libc++') != -1): ret += " libcxx " -- cgit v1.2.3-54-g00ecf