diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-02-23 13:19:18 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-02-23 23:59:49 -0800 |
commit | f6a32267065170803d22e636ecd05c2809a2b5dc (patch) | |
tree | e74cef23c68fb8e3dbb0c200a175fefe1cffc4a7 /recipes-devtools/clang/libcxx_git.bb | |
parent | 4ab185d61afb5b6660e64fb1764015fc35f2c98a (diff) | |
download | meta-clang-f6a32267065170803d22e636ecd05c2809a2b5dc.tar.gz |
compiler-rt,libcxx: Add --stdlib=libc++ to compiler flags
- We do not need it with CXX
- adding to compiler flag makes sure that libcxx headers are used even
when C (clang) compiler is used
- Eventually libcxx should provide virtual/${TARGET_PREFIX}compilerlibs
add it in comments
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/libcxx_git.bb')
-rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index 171ab18..26fbcdc 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
@@ -13,9 +13,9 @@ inherit cmake pythonnative | |||
13 | 13 | ||
14 | DEPENDS += "ninja-native" | 14 | DEPENDS += "ninja-native" |
15 | BASEDEPENDS_remove_toolchain-clang = "libcxx" | 15 | BASEDEPENDS_remove_toolchain-clang = "libcxx" |
16 | CXX_remove_toolchain-clang = "-stdlib=libc++" | 16 | DEPENDS_append_toolchain-clang = " virtual/${TARGET_PREFIX}compilerlibs" |
17 | TARGET_CXXFLAGS_remove_toolchain-clang = "-stdlib=libc++" | 17 | TARGET_CXXFLAGS_remove_toolchain-clang = "--stdlib=libc++" |
18 | TUNE_CCARGS_remove_toolchain-clang = "--rtlib=compiler-rt" | 18 | TUNE_CCARGS_remove_toolchain-clang = "--rtlib=compiler-rt --stdlib=libc++" |
19 | 19 | ||
20 | PACKAGECONFIG ??= "unwind" | 20 | PACKAGECONFIG ??= "unwind" |
21 | PACKAGECONFIG_powerpc = "" | 21 | PACKAGECONFIG_powerpc = "" |
@@ -71,8 +71,9 @@ do_install() { | |||
71 | 71 | ||
72 | ALLOW_EMPTY_${PN} = "1" | 72 | ALLOW_EMPTY_${PN} = "1" |
73 | 73 | ||
74 | #PROVIDES = "virtual/${TARGET_PREFIX}compilerlibs" | ||
75 | |||
74 | RDEPENDS_${PN}-dev += "${PN}-staticdev" | 76 | RDEPENDS_${PN}-dev += "${PN}-staticdev" |
75 | 77 | ||
76 | BBCLASSEXTEND = "native nativesdk" | 78 | BBCLASSEXTEND = "native nativesdk" |
77 | TOOLCHAIN = "clang" | 79 | TOOLCHAIN = "clang" |
78 | |||