diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-02-23 15:45:45 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-02-23 23:59:49 -0800 |
| commit | 1a131a38d29193ea7b5eed2f50c218fddc6055a5 (patch) | |
| tree | f915a928c519dcd1f6537432e6959d7e5955e38a /classes | |
| parent | c37ae8a2d9fa6b3f8fa51b6e1558ece43335691a (diff) | |
| download | meta-clang-1a131a38d29193ea7b5eed2f50c218fddc6055a5.tar.gz | |
clang.bbclass: Define COMPILER_RT and LIBCPLUSPLUS
LIBCPLUSPLUS and COMPILER_RT are variables to indicate
if clang c/c++ runtime should be used as well or not
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/clang.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index ac3b51c..c746980 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
| @@ -5,6 +5,12 @@ CPP_toolchain-clang = "${CCACHE}${HOST_PREFIX}clang ${HOST_CC_ARCH}${TOOLCHAIN_O | |||
| 5 | CCLD_toolchain-clang = "${CCACHE}${HOST_PREFIX}clang ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 5 | CCLD_toolchain-clang = "${CCACHE}${HOST_PREFIX}clang ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
| 6 | CLANG_TIDY_EXE_toolchain-clang = "${CCACHE}${HOST_PREFIX}clang-tidy ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 6 | CLANG_TIDY_EXE_toolchain-clang = "${CCACHE}${HOST_PREFIX}clang-tidy ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
| 7 | 7 | ||
| 8 | COMPILER_RT ??= "--rtlib=compiler-rt" | ||
| 9 | LIBCPLUSPLUS ??= "--stdlib=libc++" | ||
| 10 | |||
| 11 | TARGET_CXXFLAGS_append_toolchain-clang = " ${LIBCPLUSPLUS}" | ||
| 12 | TUNE_CCARGS_append_toolchain-clang = " ${COMPILER_RT} ${LIBCPLUSPLUS}" | ||
| 13 | |||
| 8 | THUMB_TUNE_CCARGS_remove_toolchain-clang = "-mthumb-interwork" | 14 | THUMB_TUNE_CCARGS_remove_toolchain-clang = "-mthumb-interwork" |
| 9 | TUNE_CCARGS_remove_toolchain-clang = "-meb" | 15 | TUNE_CCARGS_remove_toolchain-clang = "-meb" |
| 10 | TUNE_CCARGS_remove_toolchain-clang = "-mel" | 16 | TUNE_CCARGS_remove_toolchain-clang = "-mel" |
