llvm-12.0.1
This commit is contained in:
@@ -28,6 +28,9 @@ def setup():
|
|||||||
#pisitools.cxxflags.remove("-D_FORTIFY_SOURCE=2")
|
#pisitools.cxxflags.remove("-D_FORTIFY_SOURCE=2")
|
||||||
#shelltools.export("CC", "clang")
|
#shelltools.export("CC", "clang")
|
||||||
#shelltools.export("CXX", "clang++")
|
#shelltools.export("CXX", "clang++")
|
||||||
|
#shelltools.export("AR", "llvm-ar")
|
||||||
|
#shelltools.export("NM", "llvm-nm")
|
||||||
|
#shelltools.export("RANLIB", "llvm-ranlib")
|
||||||
|
|
||||||
|
|
||||||
if get.buildTYPE() == "emul32":
|
if get.buildTYPE() == "emul32":
|
||||||
@@ -62,8 +65,8 @@ def setup():
|
|||||||
if get.buildTYPE() == "emul32":
|
if get.buildTYPE() == "emul32":
|
||||||
shelltools.export("CC", "gcc -m32")
|
shelltools.export("CC", "gcc -m32")
|
||||||
shelltools.export("CXX", "g++ -m32")
|
shelltools.export("CXX", "g++ -m32")
|
||||||
#pisitools.cflags.add("-m32 ")
|
pisitools.cflags.add("-m32 ")
|
||||||
#pisitools.cxxflags.add("-m32")
|
pisitools.cxxflags.add("-m32")
|
||||||
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
||||||
options = " -DCMAKE_INSTALL_PREFIX=/emul32 \
|
options = " -DCMAKE_INSTALL_PREFIX=/emul32 \
|
||||||
-DLLVM_TARGET_ARCH:STRING=i686 \
|
-DLLVM_TARGET_ARCH:STRING=i686 \
|
||||||
@@ -73,6 +76,9 @@ def setup():
|
|||||||
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
|
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
|
||||||
-G 'Unix Makefiles' \
|
-G 'Unix Makefiles' \
|
||||||
%s \
|
%s \
|
||||||
|
-DCMAKE_AR=/usr/bin/llvm-ar \
|
||||||
|
-DCMAKE_NM=/usr/bin/llvm-nm \
|
||||||
|
-DCMAKE_RANLIB=/usr/bin/llvm-ranlib \
|
||||||
-DLLVM_ENABLE_PROJECTS='%s' \
|
-DLLVM_ENABLE_PROJECTS='%s' \
|
||||||
-DLLVM_LIBDIR_SUFFIX=%s \
|
-DLLVM_LIBDIR_SUFFIX=%s \
|
||||||
-DLLVM_ENABLE_FFI=ON \
|
-DLLVM_ENABLE_FFI=ON \
|
||||||
@@ -81,12 +87,10 @@ def setup():
|
|||||||
-DLLVM_ENABLE_EH=ON \
|
-DLLVM_ENABLE_EH=ON \
|
||||||
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
||||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||||
-DLLVM_ENABLE_SPHINX=ON \
|
|
||||||
-DLLDB_USE_SYSTEM_SIX=1 \
|
-DLLDB_USE_SYSTEM_SIX=1 \
|
||||||
-DLLVM_INCLUDEDIR=/usr/include \
|
-DLLVM_INCLUDEDIR=/usr/include \
|
||||||
-DLLVM_ENABLE_ASSERTIONS=OFF \
|
-DLLVM_ENABLE_ASSERTIONS=OFF \
|
||||||
-DFFI_INCLUDE_DIR=/usr/include \
|
-DFFI_INCLUDE_DIR=/usr/include \
|
||||||
-DLLVM_BINUTILS_INCDIR=/usr/include \
|
|
||||||
-DCOMPILER_RT_USE_LIBCXX=OFF" % (options, projects, libsuffix), sourceDir=".." )
|
-DCOMPILER_RT_USE_LIBCXX=OFF" % (options, projects, libsuffix), sourceDir=".." )
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
@@ -103,8 +107,6 @@ def install():
|
|||||||
pisitools.domove("/emul32/lib32/", "/usr/")
|
pisitools.domove("/emul32/lib32/", "/usr/")
|
||||||
pisitools.insinto("/usr/include/llvm/Config/","%s/emul32/include/llvm/Config/llvm-config.h" % get.installDIR(),"llvm-config-32.h")
|
pisitools.insinto("/usr/include/llvm/Config/","%s/emul32/include/llvm/Config/llvm-config.h" % get.installDIR(),"llvm-config-32.h")
|
||||||
pisitools.insinto("/usr/bin/","%s/emul32/bin/llvm-config" % get.installDIR(),"llvm-config-32")
|
pisitools.insinto("/usr/bin/","%s/emul32/bin/llvm-config" % get.installDIR(),"llvm-config-32")
|
||||||
pisitools.dosym("/usr/lib/LLVMgold.so", "/usr/lib/bfd-plugins/LLVMgold.so")
|
|
||||||
pisitools.dosym("/usr/lib32/LLVMgold.so", "/usr/lib32/bfd-plugins/LLVMgold.so")
|
|
||||||
pisitools.removeDir("/emul32")
|
pisitools.removeDir("/emul32")
|
||||||
#pisitools.remove("/usr/lib/python3.8/site-packages/six.py")
|
#pisitools.remove("/usr/lib/python3.8/site-packages/six.py")
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
|
||||||
|
index eb924282a75e..85929b54d6ce 100644
|
||||||
|
--- a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
|
||||||
|
+++ b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
|
||||||
|
@@ -44,3 +44,8 @@ add_llvm_component_library(LLVMAsmPrinter
|
||||||
|
Support
|
||||||
|
Target
|
||||||
|
)
|
||||||
|
+
|
||||||
|
+# https://bugs.llvm.org/show_bug.cgi?id=50611#c3
|
||||||
|
+if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
+ set_source_files_properties(DwarfCompileUnit.cpp PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
|
||||||
|
+endif()
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<License>NCSA</License>
|
<License>NCSA</License>
|
||||||
<Summary>The Low Level Virtual Machine</Summary>
|
<Summary>The Low Level Virtual Machine</Summary>
|
||||||
<Description>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.</Description>
|
<Description>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.</Description>
|
||||||
<Archive sha1sum="b84b53e788926d1b13c1bb9f289edb62862959c4" type="tarxz">https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/llvm-project-12.0.0.src.tar.xz</Archive>
|
<Archive sha1sum="f38496e31e0dc80dc9e4a682a4020ec25af09887" type="tarxz">https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/llvm-project-12.0.1.src.tar.xz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>ninja</Dependency>
|
<Dependency>ninja</Dependency>
|
||||||
<Dependency>zlib-devel</Dependency>
|
<Dependency>zlib-devel</Dependency>
|
||||||
@@ -24,26 +24,26 @@
|
|||||||
<Dependency>libedit-devel</Dependency>
|
<Dependency>libedit-devel</Dependency>
|
||||||
<Dependency versionFrom="3.18.3">cmake</Dependency>
|
<Dependency versionFrom="3.18.3">cmake</Dependency>
|
||||||
<Dependency versionFrom="3.8.6">python3-devel</Dependency>
|
<Dependency versionFrom="3.8.6">python3-devel</Dependency>
|
||||||
<Dependency>python3-sphinx</Dependency>
|
|
||||||
<!-- Use new plugin-api.h header file from binutils to enable LLVM gold plugin -->
|
<!-- Use new plugin-api.h header file from binutils to enable LLVM gold plugin -->
|
||||||
<Dependency>binutils</Dependency>
|
<!-- <Dependency>binutils</Dependency>
|
||||||
<Dependency>gcc</Dependency>
|
<Dependency>gcc</Dependency>-->
|
||||||
<!-- <Dependency>llvm</Dependency>
|
<Dependency>llvm</Dependency>
|
||||||
<Dependency>llvm-clang-devel</Dependency>
|
<Dependency>llvm-clang-devel</Dependency>
|
||||||
<Dependency>lld</Dependency>
|
<Dependency>lld</Dependency>
|
||||||
<Dependency>llvm-polly</Dependency> -->
|
<Dependency>llvm-polly</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
<!--<AdditionalFiles>
|
<!--<AdditionalFiles>
|
||||||
<AdditionalFile owner="root" permission="0644" target="../support-linking-ScopPassManager-against-LLVM-dylib.patch">support-linking-ScopPassManager-against-LLVM-dylib.patch</AdditionalFile>
|
<AdditionalFile owner="root" permission="0644" target="../support-linking-ScopPassManager-against-LLVM-dylib.patch">support-linking-ScopPassManager-against-LLVM-dylib.patch</AdditionalFile>
|
||||||
</AdditionalFiles>-->
|
</AdditionalFiles>-->
|
||||||
<Patches>
|
<Patches>
|
||||||
<Patch level="2">add-fno-semantic-interposition.patch</Patch>
|
<!-- <Patch level="2">add-fno-semantic-interposition.patch</Patch> -->
|
||||||
<Patch level="2">force-visibility-of-llvm-Any-to-external.patch</Patch>
|
<!-- <Patch level="2">force-visibility-of-llvm-Any-to-external.patch</Patch> -->
|
||||||
<Patch level="2">llvm-link-with-Bsymbolic-functions.patch</Patch>
|
<Patch level="2">llvm-link-with-Bsymbolic-functions.patch</Patch>
|
||||||
|
<Patch level="2">no-strict-aliasing-DwarfCompileUnit.patch</Patch>
|
||||||
</Patches>
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
<Package>
|
<Package>
|
||||||
<Name>llvm</Name>
|
<Name>llvm</Name>
|
||||||
<IsA>app:console</IsA>
|
<IsA>app:console</IsA>
|
||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
@@ -52,6 +52,7 @@
|
|||||||
<Dependency>zlib</Dependency>
|
<Dependency>zlib</Dependency>
|
||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
<Dependency>ncurses</Dependency>
|
<Dependency>ncurses</Dependency>
|
||||||
|
<Dependency>llvm-polly</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin</Path>
|
<Path fileType="executable">/usr/bin</Path>
|
||||||
@@ -81,6 +82,7 @@
|
|||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
<Dependency>ncurses</Dependency>
|
<Dependency>ncurses</Dependency>
|
||||||
<Dependency>libxml2</Dependency>
|
<Dependency>libxml2</Dependency>
|
||||||
|
<Dependency>llvm-polly</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="library">/usr/lib/libLLVM*.so</Path>
|
<Path fileType="library">/usr/lib/libLLVM*.so</Path>
|
||||||
@@ -104,6 +106,7 @@
|
|||||||
<Dependency>libxml2</Dependency>
|
<Dependency>libxml2</Dependency>
|
||||||
<Dependency>ncurses</Dependency>
|
<Dependency>ncurses</Dependency>
|
||||||
<Dependency>python3</Dependency>
|
<Dependency>python3</Dependency>
|
||||||
|
<Dependency>llvm-polly</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin/argdumper</Path>
|
<Path fileType="executable">/usr/bin/argdumper</Path>
|
||||||
@@ -136,6 +139,7 @@
|
|||||||
<RuntimeDependencies>
|
<RuntimeDependencies>
|
||||||
<Dependency release="current">llvm-libs</Dependency>
|
<Dependency release="current">llvm-libs</Dependency>
|
||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
|
<Dependency>llvm-polly</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin/ld.lld</Path>
|
<Path fileType="executable">/usr/bin/ld.lld</Path>
|
||||||
@@ -198,15 +202,7 @@
|
|||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/lib/clang/12.0.0/bin</Path>
|
<Path fileType="library">/usr/lib/clang/12.0.1/lib/linux/*.so</Path>
|
||||||
<Path fileType="header">/usr/lib/clang/12.0.0/include/xray</Path>
|
|
||||||
<Path fileType="header">/usr/lib/clang/12.0.0/include/fuzzer</Path>
|
|
||||||
<Path fileType="header">/usr/lib/clang/12.0.0/include/sanitizer</Path>
|
|
||||||
<Path fileType="data">/usr/lib/clang/12.0.0/share</Path>
|
|
||||||
<Path fileType="library">/usr/lib/clang/12.0.0/lib/linux/*.a</Path>
|
|
||||||
<Path fileType="library">/usr/lib/clang/12.0.0/lib/linux/*.a.*</Path>
|
|
||||||
<Path fileType="library">/usr/lib/clang/12.0.0/lib/linux/*.o</Path>
|
|
||||||
<Path fileType="library">/usr/lib/clang/12.0.0/lib/linux/*.so</Path>
|
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
@@ -218,6 +214,7 @@
|
|||||||
<Dependency release="current">llvm-libs</Dependency>
|
<Dependency release="current">llvm-libs</Dependency>
|
||||||
<Dependency>libxml2</Dependency>
|
<Dependency>libxml2</Dependency>
|
||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
|
<Dependency>llvm-polly</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin/diagtool</Path>
|
<Path fileType="executable">/usr/bin/diagtool</Path>
|
||||||
@@ -237,18 +234,6 @@
|
|||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<Package>
|
|
||||||
<Name>llvm-clang-32bit</Name>
|
|
||||||
<Summary>A C language family front-end for LLVM</Summary>
|
|
||||||
<Description>The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.</Description>
|
|
||||||
<Files>
|
|
||||||
<Path fileType="library">/usr/lib32/libclang*</Path>
|
|
||||||
<Path fileType="library">/usr/lib32/clang/</Path>
|
|
||||||
<Path fileType="library">/usr/lib32/libfindAllSymbols.so*</Path>
|
|
||||||
<Path fileType="data">/usr/lib32/cmake/clang/Clang*</Path>
|
|
||||||
</Files>
|
|
||||||
</Package>
|
|
||||||
|
|
||||||
<Package>
|
<Package>
|
||||||
<Name>llvm-clang-devel</Name>
|
<Name>llvm-clang-devel</Name>
|
||||||
<Summary>Development headers for llvm-clang</Summary>
|
<Summary>Development headers for llvm-clang</Summary>
|
||||||
@@ -257,7 +242,7 @@
|
|||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="header">/usr/include/clang</Path>
|
<Path fileType="header">/usr/include/clang</Path>
|
||||||
<Path fileType="header">/usr/lib/clang/12.0.0/include</Path>
|
<Path fileType="header">/usr/lib/clang/11.0.0/include</Path>
|
||||||
<Path fileType="header">/usr/include/clang-c</Path>
|
<Path fileType="header">/usr/include/clang-c</Path>
|
||||||
<Path fileType="header">/usr/include/clang-tidy</Path>
|
<Path fileType="header">/usr/include/clang-tidy</Path>
|
||||||
</Files>
|
</Files>
|
||||||
@@ -270,6 +255,7 @@
|
|||||||
<Dependency release="current">llvm-libs</Dependency>
|
<Dependency release="current">llvm-libs</Dependency>
|
||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
<Dependency>ncurses</Dependency>
|
<Dependency>ncurses</Dependency>
|
||||||
|
<Dependency>llvm-polly</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin/mlir*</Path>
|
<Path fileType="executable">/usr/bin/mlir*</Path>
|
||||||
@@ -288,7 +274,7 @@
|
|||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="library">/usr/lib/LLVMPolly.so</Path>
|
<Path fileType="library">/usr/lib/LLVMPolly.so</Path>
|
||||||
<Path fileType="library">/usr/lib/libPolly*.a*</Path>
|
<Path fileType="library">/usr/lib/libPolly*.so*</Path>
|
||||||
<Path fileType="header">/usr/include/polly</Path>
|
<Path fileType="header">/usr/include/polly</Path>
|
||||||
<Path fileType="data">/usr/lib/cmake/polly</Path>
|
<Path fileType="data">/usr/lib/cmake/polly</Path>
|
||||||
</Files>
|
</Files>
|
||||||
@@ -315,15 +301,16 @@
|
|||||||
<Dependency>libffi-32bit</Dependency>
|
<Dependency>libffi-32bit</Dependency>
|
||||||
<Dependency>libxml2-32bit</Dependency>
|
<Dependency>libxml2-32bit</Dependency>
|
||||||
<Dependency>ncurses-32bit</Dependency>
|
<Dependency>ncurses-32bit</Dependency>
|
||||||
|
<!-- <Dependency>libcxx-32bit</Dependency> -->
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
<RuntimeDependencies>
|
<RuntimeDependencies>
|
||||||
<Dependency release="current">llvm</Dependency>
|
<Dependency release="current">llvm</Dependency>
|
||||||
<Dependency release="current">llvm-clang-32bit</Dependency>
|
|
||||||
<Dependency>libgcc</Dependency>
|
<Dependency>libgcc</Dependency>
|
||||||
<Dependency>libxml2-32bit</Dependency>
|
<Dependency>libxml2-32bit</Dependency>
|
||||||
<Dependency>ncurses-32bit</Dependency>
|
<Dependency>ncurses-32bit</Dependency>
|
||||||
<Dependency>zlib-32bit</Dependency>
|
<Dependency>zlib-32bit</Dependency>
|
||||||
<Dependency>libffi-32bit</Dependency>
|
<Dependency>libffi-32bit</Dependency>
|
||||||
|
<!-- <Dependency>libcxx-32bit</Dependency> -->
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin/llvm-config-32</Path>
|
<Path fileType="executable">/usr/bin/llvm-config-32</Path>
|
||||||
@@ -332,6 +319,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="17">
|
||||||
|
<Date>2021-07-07</Date>
|
||||||
|
<Version>12.0.1</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>İdris Kalp</Name>
|
||||||
|
<Email>idriskalp@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="16">
|
<Update release="16">
|
||||||
<Date>2021-06-03</Date>
|
<Date>2021-06-03</Date>
|
||||||
<Version>12.0.0</Version>
|
<Version>12.0.0</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user