From e53739f821ad76773e205674a3e10c2801b1889e Mon Sep 17 00:00:00 2001 From: Idris Kalp Date: Sat, 5 Jun 2021 00:08:16 +0300 Subject: [PATCH] llvm 12.0.0 fix jobs --- programming/build/llvm/actions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")