diff --git a/programming/build/llvm/actions.py b/programming/build/llvm/actions.py index 0442c23e53..773903f4b2 100644 --- a/programming/build/llvm/actions.py +++ b/programming/build/llvm/actions.py @@ -23,32 +23,32 @@ 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") - pisitools.cflags.add("-rtlib=compiler-rt -Wno-unused-command-line-argument") - pisitools.cxxflags.add("-rtlib=compiler-rt -Wno-unused-command-line-argument") - 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") + #pisitools.cflags.add("-mllvm -polly -Wno-unused-command-line-argument") + #pisitools.cxxflags.add("-mllvm -polly -Wno-unused-command-line-argument") + #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", "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("PKG_CONFIG_PATH","/usr/lib32/pkgconfig") #clang patch #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++") @@ -65,10 +65,10 @@ def setup(): if get.buildTYPE() == "emul32": - #shelltools.export("CC", "gcc -m32") - #shelltools.export("CXX", "g++ -m32") - pisitools.cflags.add("-m32 -rtlib=compiler-rt") - pisitools.cxxflags.add("-m32 -rtlib=compiler-rt") + 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") options = " -DCMAKE_INSTALL_PREFIX=/emul32 \ -DLLVM_TARGET_ARCH:STRING=i686 \ @@ -78,9 +78,6 @@ 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 \ diff --git a/programming/build/llvm/pspec.xml b/programming/build/llvm/pspec.xml index 5dd3a550ce..007593336a 100755 --- a/programming/build/llvm/pspec.xml +++ b/programming/build/llvm/pspec.xml @@ -11,7 +11,7 @@ NCSA The Low Level Virtual Machine The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Despite its name, LLVM has little to do with traditional virtual machines, though it does provide helpful libraries that can be used to build them. - https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/llvm-project-13.0.1.src.tar.xz + https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.3/llvm-project-14.0.3.src.tar.xz ninja zlib-devel @@ -36,7 +36,7 @@ support-linking-ScopPassManager-against-LLVM-dylib.patch --> - don-t-move-DBG_VALUE-instructions.patch + @@ -330,6 +330,13 @@ + + 2022-04-29 + 14.0.3 + Version bump. + Mustafa Cinasal + muscnsl@gmail.com + 2022-04-24 13.0.1