Skip to contentSkip to conversation

llvm: fix parallel build

PATCH New Jonathan Liu 1 participant 1 message May 31, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 llvm: fix parallel build

Doing a parallel build may result in the following:
*** No rule to make target native/bin/tblgen', needed by include/llvm/Intrinsics.gen.tmp'

Avoid this by building tblgen first before building the rest of llvm.

---
 meta-oe/recipes-core/llvm/llvm.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-core/llvm/llvm.inc +5 -0
index 546a40b..a56fda0 100644
@@ -104,6 +104,11 @@ FILES_${PN}-dev = " \
                    ${libdir}/llvm${LLVM_RELEASE}/*.a \
 "
 
+base_do_compile_prepend() {
+    # Avoid *** No rule to make target `native/bin/tblgen', needed by `include/llvm/Intrinsics.gen.tmp'
+    oe_runmake tblgen
+}
+
 do_install() {
     # Install into a private directory to be able to reorganize the files.
 
Signature · 1 line
1.8.3