diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-04-04 03:01:28 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2016-04-04 03:01:28 +0000 |
commit | b79b1b67263abcaddfd0e3f76058f1b82d9bb846 (patch) | |
tree | acd99cf5fa7313f11822a46e297b4ff7681c268b | |
parent | ec4886917b5a4e4bdddfdbb5a85061ecb407e5ce (diff) | |
download | meta-clang-b79b1b67263abcaddfd0e3f76058f1b82d9bb846.tar.gz |
compiler-rt: Enable sanitizers
Fix the code to make them buildable
Dont package libclang_rt.asan shared object yet
it links with libstdc++, we need to make it
use libc++ and then we can package it
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/compiler-rt_git.bb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index 9e18156..17229b1 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
@@ -27,19 +27,25 @@ S = "${WORKDIR}/git" | |||
27 | inherit cmake pkgconfig pythonnative | 27 | inherit cmake pkgconfig pythonnative |
28 | 28 | ||
29 | THUMB_TUNE_CCARGS = "" | 29 | THUMB_TUNE_CCARGS = "" |
30 | TUNE_CCARGS += "-nostdlib" | ||
30 | 31 | ||
31 | EXTRA_OECMAKE += "-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \ | 32 | EXTRA_OECMAKE += "-DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \ |
32 | -DCOMPILER_RT_BUILD_SANITIZERS=OFF \ | 33 | -DCOMPILER_RT_BUILD_SANITIZERS=ON \ |
33 | -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${MULTIMACH_HOST_SYS} \ | 34 | -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${MULTIMACH_HOST_SYS} \ |
34 | " | 35 | " |
35 | 36 | ||
36 | do_install_append () { | 37 | do_install_append () { |
37 | install -d ${D}${base_libdir} | 38 | install -d ${D}${libdir} |
38 | mv ${D}${libdir}/linux/*.a ${D}${base_libdir} | 39 | mv ${D}${libdir}/linux/* ${D}${libdir} |
40 | mv ${D}${exec_prefix}/*.txt ${D}${libdir} | ||
41 | rm -rf ${D}${libdir}/libclang_rt.asan*.so | ||
39 | rmdir ${D}${libdir}/linux | 42 | rmdir ${D}${libdir}/linux |
40 | rmdir ${D}${libdir} | ||
41 | } | 43 | } |
42 | 44 | ||
45 | FILES_SOLIBSDEV = "" | ||
46 | FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}" | ||
47 | INSANE_SKIP_${PN} = "dev-so" | ||
48 | |||
43 | #PROVIDES_append_class-target = "\ | 49 | #PROVIDES_append_class-target = "\ |
44 | # virtual/${TARGET_PREFIX}compilerlibs \ | 50 | # virtual/${TARGET_PREFIX}compilerlibs \ |
45 | # libgcc \ | 51 | # libgcc \ |
@@ -48,4 +54,9 @@ do_install_append () { | |||
48 | # libgcc-initial-dev \ | 54 | # libgcc-initial-dev \ |
49 | # " | 55 | # " |
50 | # | 56 | # |
57 | |||
58 | FILES_${PN}-dev += "${libdir}/*.syms ${libdir}/*.txt" | ||
59 | |||
51 | BBCLASSEXTEND = "native nativesdk" | 60 | BBCLASSEXTEND = "native nativesdk" |
61 | |||
62 | ALLOW_EMPTY_${PN} = "1" | ||