]> code.ossystems Code Review - openembedded-core.git/commitdiff
llvm: fix reproducibility
authorAlexander Kanavin <alex.kanavin@gmail.com>
Thu, 3 Dec 2020 13:37:19 +0000 (14:37 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 10 Dec 2020 14:39:10 +0000 (04:39 -1000)
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>
meta/recipes-devtools/llvm/llvm_git.bb

index a8607f5008d9a96809a8daba2475bc995f1e5a9a..6ea1b80e1f55f7395f417ea8f1b66243266a9575 100644 (file)
@@ -101,6 +101,11 @@ do_configure_prepend() {
        sed -ri "s#lib/${LLVM_DIR}#${baselib}/${LLVM_DIR}#g" ${S}/tools/llvm-config/llvm-config.cpp
 }
 
+# patch out build host paths for reproducibility
+do_compile_prepend_class-target() {
+        sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-config/BuildVariables.inc
+}
+
 do_compile() {
        ninja -v ${PARALLEL_MAKE}
 }