diff --git a/programming/build/llvm/actions.py b/programming/build/llvm/actions.py index de22f42ebc..d11b977fe4 100644 --- a/programming/build/llvm/actions.py +++ b/programming/build/llvm/actions.py @@ -9,11 +9,15 @@ from pisi.actionsapi import shelltools from pisi.actionsapi import cmaketools from pisi.actionsapi import get +import subprocess + projects = "clang;mlir" if get.buildTYPE() == "emul32" else "clang;clang-tools-extra;lld;lldb;polly;compiler-rt;mlir" libdir = "/usr/lib32/llvm" if get.buildTYPE() == "emul32" else "/usr/lib/llvm" lib = "lib32" if get.buildTYPE() == "emul32" else "lib" libsuffix = "32" if get.buildTYPE() == "emul32" else " " +jobs = jobs = "-j"+ subprocess.check_output("nproc 2>/dev/null", shell=True).rstrip("\n") + NoStrip = ["/usr/lib/clang/%s/lib/linux" % get.srcVERSION()] WorkDir = "llvm-project-%s.src/llvm" % get.srcVERSION() @@ -85,7 +89,7 @@ def setup(): def build(): shelltools.cd("build") #shelltools.system("ninja") - cmaketools.make() + cmaketools.make(jobs) def install(): shelltools.cd("build")