diff options
Diffstat (limited to 'classes')
-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 " |