summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/llvm
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-12-03 14:37:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-18 14:20:19 +0000
commit4d6c5efbb9e6e19bfc8ba17433e7190a3e37eb06 (patch)
tree91420283d6d43122de4898f724fa1b790f92a3b8 /meta/recipes-devtools/llvm
parent2855ca28ff75ab1e9112e17fe9b07cc9cbdff619 (diff)
downloadpoky-4d6c5efbb9e6e19bfc8ba17433e7190a3e37eb06.tar.gz
llvm: fix reproducibility
(From OE-Core rev: 18004b4c1b2d595d081888437f6f9cbcb02bf746) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a467c0a03d077861c37e317dcb2905b6388cb64c) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/llvm')
-rw-r--r--meta/recipes-devtools/llvm/llvm_git.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb
index a8607f5008..6ea1b80e1f 100644
--- a/meta/recipes-devtools/llvm/llvm_git.bb
+++ b/meta/recipes-devtools/llvm/llvm_git.bb
@@ -101,6 +101,11 @@ do_configure_prepend() {
101 sed -ri "s#lib/${LLVM_DIR}#${baselib}/${LLVM_DIR}#g" ${S}/tools/llvm-config/llvm-config.cpp 101 sed -ri "s#lib/${LLVM_DIR}#${baselib}/${LLVM_DIR}#g" ${S}/tools/llvm-config/llvm-config.cpp
102} 102}
103 103
104# patch out build host paths for reproducibility
105do_compile_prepend_class-target() {
106 sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-config/BuildVariables.inc
107}
108
104do_compile() { 109do_compile() {
105 ninja -v ${PARALLEL_MAKE} 110 ninja -v ${PARALLEL_MAKE}
106} 111}