diff options
| author | Hsia-Jun(Randy) Li <randy.li@synaptics.com> | 2021-08-04 17:12:31 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-12-15 13:15:15 -0800 |
| commit | a494bbb6ec44a723703951a061c2adde5bca6852 (patch) | |
| tree | fcb87ce1a4f1040b7ba1efe912206813122bb7fd /classes/clang.bbclass | |
| parent | 0304ff4e533698a036b4df7307d0a2af29441414 (diff) | |
| download | meta-clang-a494bbb6ec44a723703951a061c2adde5bca6852.tar.gz | |
clang: support android runtime
Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com>
Diffstat (limited to 'classes/clang.bbclass')
| -rw-r--r-- | classes/clang.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
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): | |||
| 95 | if not d.getVar('INHIBIT_DEFAULT_DEPS', False): | 95 | if not d.getVar('INHIBIT_DEFAULT_DEPS', False): |
| 96 | if not oe.utils.inherits(d, 'allarch') : | 96 | if not oe.utils.inherits(d, 'allarch') : |
| 97 | ret = " clang-cross-${TARGET_ARCH} virtual/libc " | 97 | ret = " clang-cross-${TARGET_ARCH} virtual/libc " |
| 98 | if (d.getVar('RUNTIME').find('android') != -1): | ||
| 99 | ret += " libcxx" | ||
| 100 | return ret | ||
| 98 | if (d.getVar('RUNTIME').find('llvm') != -1): | 101 | if (d.getVar('RUNTIME').find('llvm') != -1): |
| 99 | ret += " compiler-rt libcxx" | 102 | ret += " compiler-rt libcxx" |
| 100 | elif (d.getVar('COMPILER_RT').find('-rtlib=compiler-rt') != -1): | 103 | elif (d.getVar('COMPILER_RT').find('-rtlib=compiler-rt') != -1): |
| 101 | ret += " compiler-rt " | 104 | ret += " compiler-rt " |
| 102 | else: | 105 | else: |
| 103 | ret += " libgcc " | 106 | ret += " libgcc " |
| 104 | if (d.getVar('RUNTIME').find('llvm') != -1): | 107 | if (d.getVar('COMPILER_RT').find('--unwindlib=libunwind') != -1): |
| 105 | ret += " libcxx" | ||
| 106 | elif (d.getVar('COMPILER_RT').find('--unwindlib=libunwind') != -1): | ||
| 107 | ret += " libcxx " | 108 | ret += " libcxx " |
| 108 | elif (d.getVar('LIBCPLUSPLUS').find('-stdlib=libc++') != -1): | 109 | elif (d.getVar('LIBCPLUSPLUS').find('-stdlib=libc++') != -1): |
| 109 | ret += " libcxx " | 110 | ret += " libcxx " |
