diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-02-13 21:07:38 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-02-13 21:12:13 -0800 |
commit | 2640da92a55bc7dc634cdaede237494748287fa8 (patch) | |
tree | ee376d9732dbf7870ad187187a2d79edc47e9838 /recipes-devtools | |
parent | f344f8a6ab54289b9d67b92b399f7a058981e15c (diff) | |
download | meta-clang-2640da92a55bc7dc634cdaede237494748287fa8.tar.gz |
compiler-rt: Define _LIBCPP_HAS_MUSL_LIBC when building for musl
libcxx headers are used during compiler-rt build and libcxx needs to
know the libc type in order to include correct wrappers for locale
headers
Remove duplicated -DCOMPILER_RT_BUILD_XRAY=OFF
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r-- | recipes-devtools/clang/compiler-rt_git.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index 3c72ae4..fa43c8b 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
@@ -40,8 +40,9 @@ EXTRA_OECMAKE_append_class-nativesdk = "\ | |||
40 | -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ | 40 | -DCLANG_TABLEGEN=${STAGING_BINDIR_NATIVE}/clang-tblgen \ |
41 | " | 41 | " |
42 | 42 | ||
43 | EXTRA_OECMAKE_append_libc-musl = " -DCOMPILER_RT_BUILD_SANITIZERS=OFF -DCOMPILER_RT_BUILD_XRAY=OFF " | 43 | EXTRA_OECMAKE_append_libc-musl = " -DCOMPILER_RT_BUILD_SANITIZERS=OFF " |
44 | EXTRA_OECMAKE_append_mipsarch = "-DCOMPILER_RT_BUILD_SANITIZERS=OFF -DCOMPILER_RT_BUILD_XRAY=OFF " | 44 | CXXFLAGS_append_libc-musl = " -D_LIBCPP_HAS_MUSL_LIBC=ON " |
45 | EXTRA_OECMAKE_append_mipsarch = "-DCOMPILER_RT_BUILD_SANITIZERS=OFF " | ||
45 | 46 | ||
46 | do_compile() { | 47 | do_compile() { |
47 | ninja ${PARALLEL_MAKE} compiler-rt | 48 | ninja ${PARALLEL_MAKE} compiler-rt |