From: Alexander Kanavin Date: Thu, 3 Dec 2020 13:37:19 +0000 (+0100) Subject: llvm: fix reproducibility X-Git-Tag: 2020-04.5-dunfell~76 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=18004b4c1b2d595d081888437f6f9cbcb02bf746;p=openembedded-core.git llvm: fix reproducibility Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie (cherry picked from commit a467c0a03d077861c37e317dcb2905b6388cb64c) Signed-off-by: Steve Sakoman --- 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() { 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} }