diff --git a/programming/build/llvm/actions.py b/programming/build/llvm/actions.py
index cd02375e7d..b5be0000ec 100644
--- a/programming/build/llvm/actions.py
+++ b/programming/build/llvm/actions.py
@@ -23,19 +23,19 @@ NoStrip = ["/usr/lib/clang/%s/lib/linux" % get.srcVERSION()]
WorkDir = "llvm-project-%s.src/llvm" % get.srcVERSION()
def setup():
- #pisitools.ldflags.add("-fuse-ld=lld")
- #pisitools.cflags.remove("-D_FORTIFY_SOURCE=2")
- #pisitools.cxxflags.remove("-D_FORTIFY_SOURCE=2")
- #shelltools.export("CC", "clang")
- #shelltools.export("CXX", "clang++")
- #shelltools.export("AR", "llvm-ar")
- #shelltools.export("NM", "llvm-nm")
- #shelltools.export("RANLIB", "llvm-ranlib")
+ pisitools.ldflags.add("-fuse-ld=lld")
+ pisitools.cflags.remove("-D_FORTIFY_SOURCE=2")
+ pisitools.cxxflags.remove("-D_FORTIFY_SOURCE=2")
+ shelltools.export("CC", "clang")
+ shelltools.export("CXX", "clang++")
+ shelltools.export("AR", "llvm-ar")
+ shelltools.export("NM", "llvm-nm")
+ shelltools.export("RANLIB", "llvm-ranlib")
if get.buildTYPE() == "emul32":
- shelltools.export("CC", "gcc -m32")
- shelltools.export("CXX", "g++ -m32")
+ #shelltools.export("CC", "gcc -m32")
+ #shelltools.export("CXX", "g++ -m32")
#shelltools.export("CC", "clang -m32")
#shelltools.export("CXX", "clang++ -m32")
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
@@ -44,9 +44,9 @@ def setup():
#shelltools.cd("tools")
#shelltools.system("patch -p1 < enable-SSP-and-PIE-by-default.patch")
#shelltools.cd("..")
- else:
- shelltools.export("CC", "gcc")
- shelltools.export("CXX", "g++")
+ #else:
+ #shelltools.export("CC", "gcc")
+ #shelltools.export("CXX", "g++")
#shelltools.export("CC", "clang")
#shelltools.export("CXX", "clang++")
@@ -63,8 +63,8 @@ def setup():
if get.buildTYPE() == "emul32":
- shelltools.export("CC", "gcc -m32")
- shelltools.export("CXX", "g++ -m32")
+ #shelltools.export("CC", "gcc -m32")
+ #shelltools.export("CXX", "g++ -m32")
pisitools.cflags.add("-m32 ")
pisitools.cxxflags.add("-m32")
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
@@ -76,6 +76,9 @@ def setup():
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
-G 'Unix Makefiles' \
%s \
+ -DCMAKE_AR=/usr/bin/llvm-ar \
+ -DCMAKE_NM=/usr/bin/llvm-nm \
+ -DCMAKE_RANLIB=/usr/bin/llvm-ranlib \
-DLLVM_ENABLE_PROJECTS='%s' \
-DLLVM_LIBDIR_SUFFIX=%s \
-DLLVM_ENABLE_FFI=ON \
@@ -88,10 +91,7 @@ def setup():
-DLLVM_INCLUDEDIR=/usr/include \
-DLLVM_ENABLE_ASSERTIONS=OFF \
-DFFI_INCLUDE_DIR=/usr/include \
- -DCOMPILER_RT_USE_LIBCXX=OFF" % (options, projects, libsuffix), sourceDir=".." )
- #-DCMAKE_AR=/usr/bin/llvm-ar \
- #-DCMAKE_NM=/usr/bin/llvm-nm \
- #-DCMAKE_RANLIB=/usr/bin/llvm-ranlib \
+ -DCOMPILER_RT_USE_LIBCXX=OFF" % (options, projects, libsuffix), sourceDir=".." )
def build():
shelltools.cd("build")
diff --git a/programming/build/llvm/pspec.xml b/programming/build/llvm/pspec.xml
index e5825971a0..2505592543 100755
--- a/programming/build/llvm/pspec.xml
+++ b/programming/build/llvm/pspec.xml
@@ -26,11 +26,11 @@
python3-devel
- gcc
-
+ llvm
llvm-clang-devel
lld
- llvm-polly
+ llvm-polly