diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-02-08 14:33:24 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-02-09 19:27:13 -0800 |
commit | 84440d29f2340a3b4267a39c01a6e5936f5f1af2 (patch) | |
tree | ae477043eb30b3eb6847747cfc85c9914e9ce352 | |
parent | 0d2d72e53cff8bffc4ac7cbe294724295797d982 (diff) | |
download | meta-clang-84440d29f2340a3b4267a39c01a6e5936f5f1af2.tar.gz |
compiler-rt: Disable standalone build
standalone build starts to look for c++ headers which then
are fed from libstc++ because libcxx is not built yet, instead
let build use it from in-tree libcxx
enable llvm-ar/llvm-ranlib/llvm-nm to provide ar/ranlib/nm
respectively, this helps with lto enabled builds for libcxx
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/compiler-rt_git.bb | 12 | ||||
-rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 4 |
2 files changed, 11 insertions, 5 deletions
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index e59a65d..3c72ae4 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
@@ -28,10 +28,11 @@ THUMB_TUNE_CCARGS = "" | |||
28 | 28 | ||
29 | HF = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" | 29 | HF = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" |
30 | HF[vardepvalue] = "${HF}" | 30 | HF[vardepvalue] = "${HF}" |
31 | EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=ON \ | 31 | EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=OFF \ |
32 | -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${HOST_ARCH}${HF}${HOST_VENDOR}-${HOST_OS} \ | 32 | -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${HOST_ARCH}${HF}${HOST_VENDOR}-${HOST_OS} \ |
33 | -DCOMPILER_RT_BUILD_XRAY=OFF \ | 33 | -DCOMPILER_RT_BUILD_XRAY=OFF \ |
34 | -G Ninja ${S}/compiler-rt \ | 34 | -DLLVM_ENABLE_PROJECTS='compiler-rt' \ |
35 | -G Ninja ${S}/llvm \ | ||
35 | " | 36 | " |
36 | 37 | ||
37 | EXTRA_OECMAKE_append_class-nativesdk = "\ | 38 | EXTRA_OECMAKE_append_class-nativesdk = "\ |
@@ -43,11 +44,11 @@ EXTRA_OECMAKE_append_libc-musl = " -DCOMPILER_RT_BUILD_SANITIZERS=OFF -DCOMPILER | |||
43 | EXTRA_OECMAKE_append_mipsarch = "-DCOMPILER_RT_BUILD_SANITIZERS=OFF -DCOMPILER_RT_BUILD_XRAY=OFF " | 44 | EXTRA_OECMAKE_append_mipsarch = "-DCOMPILER_RT_BUILD_SANITIZERS=OFF -DCOMPILER_RT_BUILD_XRAY=OFF " |
44 | 45 | ||
45 | do_compile() { | 46 | do_compile() { |
46 | ninja ${PARALLEL_MAKE} | 47 | ninja ${PARALLEL_MAKE} compiler-rt |
47 | } | 48 | } |
48 | 49 | ||
49 | do_install() { | 50 | do_install() { |
50 | DESTDIR=${D} ninja ${PARALLEL_MAKE} install | 51 | DESTDIR=${D} ninja ${PARALLEL_MAKE} install-compiler-rt |
51 | } | 52 | } |
52 | 53 | ||
53 | 54 | ||
@@ -69,7 +70,8 @@ do_install_append () { | |||
69 | 70 | ||
70 | FILES_SOLIBSDEV = "" | 71 | FILES_SOLIBSDEV = "" |
71 | FILES_${PN} += "${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/lib*${SOLIBSDEV} \ | 72 | FILES_${PN} += "${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/lib*${SOLIBSDEV} \ |
72 | ${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/*.txt" | 73 | ${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/*.txt \ |
74 | ${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/share/*.txt" | ||
73 | FILES_${PN}-staticdev += "${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/*.a" | 75 | FILES_${PN}-staticdev += "${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/*.a" |
74 | FILES_${PN}-dev += "${datadir} ${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/*.syms" | 76 | FILES_${PN}-dev += "${datadir} ${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/*.syms" |
75 | INSANE_SKIP_${PN} = "dev-so" | 77 | INSANE_SKIP_${PN} = "dev-so" |
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index 8168c61..171ab18 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
@@ -41,6 +41,9 @@ EXTRA_OECMAKE += "\ | |||
41 | -DLIBCXXABI_LIBCXX_INCLUDES=${S}/libcxx/include \ | 41 | -DLIBCXXABI_LIBCXX_INCLUDES=${S}/libcxx/include \ |
42 | -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/libcxxabi/include \ | 42 | -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/libcxxabi/include \ |
43 | -DLIBCXX_CXX_ABI_LIBRARY_PATH=${B}/lib \ | 43 | -DLIBCXX_CXX_ABI_LIBRARY_PATH=${B}/lib \ |
44 | -DCMAKE_AR=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ar \ | ||
45 | -DCMAKE_NM=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-nm \ | ||
46 | -DCMAKE_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}llvm-ranlib \ | ||
44 | -DLLVM_ENABLE_PROJECTS='libcxx;libcxxabi${LIBUNWIND}' \ | 47 | -DLLVM_ENABLE_PROJECTS='libcxx;libcxxabi${LIBUNWIND}' \ |
45 | -G Ninja \ | 48 | -G Ninja \ |
46 | ${S}/llvm \ | 49 | ${S}/llvm \ |
@@ -72,3 +75,4 @@ RDEPENDS_${PN}-dev += "${PN}-staticdev" | |||
72 | 75 | ||
73 | BBCLASSEXTEND = "native nativesdk" | 76 | BBCLASSEXTEND = "native nativesdk" |
74 | TOOLCHAIN = "clang" | 77 | TOOLCHAIN = "clang" |
78 | |||