From a0e666a1b82a88105706d64179f66e46eaca2b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkan=20I=C5=9EIK?= Date: Sat, 28 Mar 2020 01:16:24 +0300 Subject: [PATCH] . --- programming/build/llvm/actions.py | 19 ++++++++++--------- programming/build/llvm/pspec.xml | 7 +++++-- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/programming/build/llvm/actions.py b/programming/build/llvm/actions.py index c957567c2b..5852a0f32d 100755 --- a/programming/build/llvm/actions.py +++ b/programming/build/llvm/actions.py @@ -16,7 +16,7 @@ libsuffix = "32" if get.buildTYPE() == "emul32" else "" NoStrip = ["/usr/lib/clang/%s/lib/linux" % get.srcVERSION()] def setup(): - #pisitools.ldflags.add("-fuse-ld=lld") + pisitools.ldflags.add("-fuse-ld=lld") if get.buildTYPE() != "emul32": if not shelltools.can_access_directory("tools/clang"): @@ -39,19 +39,19 @@ def setup(): shelltools.system("tar xf ../compiler-rt-%s.src.tar.xz -C projects" % get.srcVERSION()) shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(), "projects/compiler-rt") - #shelltools.export("CC", "clang") - #shelltools.export("CXX", "clang++") - shelltools.export("CC", "gcc") - shelltools.export("CXX", "g++") + shelltools.export("CC", "clang") + shelltools.export("CXX", "clang++") + #shelltools.export("CC", "gcc") + #shelltools.export("CXX", "g++") else: shelltools.system("tar xf ../clang-%s.src.tar.xz -C tools" % get.srcVERSION()) shelltools.move("tools/clang-%s.src" % get.srcVERSION(), "tools/clang") if get.buildTYPE() == "emul32": - #shelltools.export("CC", "clang -m32") - #shelltools.export("CXX", "clang++ -m32") - shelltools.export("CC", "gcc -m32") - shelltools.export("CXX", "g++ -m32") + shelltools.export("CC", "clang -m32") + shelltools.export("CXX", "clang++ -m32") + #shelltools.export("CC", "gcc -m32") + #shelltools.export("CXX", "g++ -m32") shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig") shelltools.makedirs("build") @@ -63,6 +63,7 @@ def setup(): -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_CXX_FLAGS:STRING=-m64 \ -DLLVM_TARGET_ARCH:STRING=x86_64 \ + -DLLDB_ENABLE_LUA=OFF \ -DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST() diff --git a/programming/build/llvm/pspec.xml b/programming/build/llvm/pspec.xml index dd2873ed8c..a33a4e5091 100755 --- a/programming/build/llvm/pspec.xml +++ b/programming/build/llvm/pspec.xml @@ -32,8 +32,8 @@ binutils gcc - - + llvm-clang + lld @@ -95,6 +95,7 @@ Next generation, high-performance debugger llvm-libs + llvm-clang zlib libffi libedit @@ -102,6 +103,7 @@ ncurses python libxml2 + xz /usr/bin/argdumper @@ -205,6 +207,7 @@ A C language family front-end for LLVM The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler. + llvm llvm-libs libgcc ncurses