Revert "Revert "Revert "add fortran component"""
This reverts commit c603ae5436.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<PISI>
|
||||
<Name>programming.language.fortran</Name>
|
||||
</PISI>
|
||||
@@ -1,52 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
WorkDir = "llvm-project-%s/flang"
|
||||
|
||||
NoStrip = ["/usr"]
|
||||
|
||||
def setup():
|
||||
shelltools.makedirs("build")
|
||||
shelltools.cd("build")
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
shelltools.export("CC", "clang")
|
||||
shelltools.export("CXX" "clang++")
|
||||
else:
|
||||
shelltools.export("CC", "clang -m32")
|
||||
shelltools.export("CXX" "clang++ -m32")
|
||||
|
||||
pisitools.ldflags.add("-fuse-ld=lld")
|
||||
|
||||
options = "-DBUILD_SHARED_LIBS=ON \
|
||||
-DFLANG_INCLUDE_DOCS=ON \
|
||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||
-DLLVM_EXTERNAL_LIT=../../llvm/utils/lit/lit.py \
|
||||
"
|
||||
if get.buildTYPE() == "emul32":
|
||||
options += "-DLLVM_LIBDIR_SUFFIX=32 \
|
||||
-DCMAKE_INSTALL_PREFIX=/emul32
|
||||
"
|
||||
cmaketools.configure(options)
|
||||
|
||||
def build():
|
||||
shelltools.cd("build")
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
shelltools.cd("build")
|
||||
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
|
||||
if get.buildTYPE() == "emul32" :
|
||||
pisitools.domove("/emul32/lib32/", "/usr/")
|
||||
pisitools.removeDir("/emul32")
|
||||
|
||||
pisitools.dodoc("LICENSE.TXT", "README.md")
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -Naur flang-11.0.0rc2.src/CMakeLists.txt flang-11.0.0rc2.src.cmake/CMakeLists.txt
|
||||
--- flang-11.0.0rc2.src/CMakeLists.txt 2020-08-20 16:24:59.000000000 +0000
|
||||
+++ flang-11.0.0rc2.src.cmake/CMakeLists.txt 2020-09-03 13:44:24.226776260 +0000
|
||||
@@ -199,8 +199,6 @@
|
||||
# Always build tco tool
|
||||
set(LLVM_BUILD_TOOLS ON)
|
||||
message(STATUS "Linking driver with FIR and LLVM")
|
||||
- llvm_map_components_to_libnames(LLVM_COMMON_LIBS support)
|
||||
- message(STATUS "LLVM libraries: ${LLVM_COMMON_LIBS}")
|
||||
endif()
|
||||
|
||||
# Add Flang-centric modules to cmake path.
|
||||
@@ -1,13 +0,0 @@
|
||||
diff -Naur flang-11.0.0rc2.src.orig/lib/Parser/token-sequence.cpp flang-11.0.0rc2.src/lib/Parser/token-sequence.cpp
|
||||
--- flang-11.0.0rc2.src.orig/lib/Parser/token-sequence.cpp 2020-09-03 12:01:15.278223312 +0000
|
||||
+++ flang-11.0.0rc2.src/lib/Parser/token-sequence.cpp 2020-09-03 12:51:40.082870848 +0000
|
||||
@@ -134,7 +134,8 @@
|
||||
std::size_t atToken{0};
|
||||
for (std::size_t j{0}; j < chars;) {
|
||||
std::size_t nextStart{atToken + 1 < tokens ? start_[++atToken] : chars};
|
||||
- char *p{&char_[j]}, *limit{&char_[nextStart]};
|
||||
+ char *p{&char_[j]};
|
||||
+ char const* limit{char_.data() + nextStart};
|
||||
j = nextStart;
|
||||
if (IsDecimalDigit(*p)) {
|
||||
while (p < limit && IsDecimalDigit(*p)) {
|
||||
Binary file not shown.
@@ -1,75 +0,0 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>flang</Name>
|
||||
<Homepage>https://llvm.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>Idris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Packager>
|
||||
<License>MIT</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>LLVM Fortran compiler</Summary>
|
||||
<Description>A Fortran language front-end designed for integration with LLVM</Description>
|
||||
<Archive sha1sum="3c88390b19ac6779c8d9c89256892d690903412b" type="tarxz">https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/llvm-project-11.0.0.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency versionFrom="11.0.0">llvm</Dependency>
|
||||
<Dependency versionFrom="11.0.0">llvm-libs</Dependency>
|
||||
<Dependency>llvm-clang</Dependency>
|
||||
<Dependency>lld</Dependency>
|
||||
<Dependency>cmake</Dependency>
|
||||
<Dependency>python3-sphinx</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">shared.patch</Patch>
|
||||
<Patch level="1">token-sequence.patch</Patch>
|
||||
</Patch>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>flang</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency versionFrom="11.0.0">llvm-libs</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>flang-32bit</Name>
|
||||
<Summary>flang 32bit shared libraries.</Summary>
|
||||
<BuildType>emul32</BuildType>
|
||||
<PartOf>emul32</PartOf>
|
||||
<RuntimeDependencies>
|
||||
<Dependency versionFrom="11.0.0">llvm-32bit</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>flang-devel</Name>
|
||||
<Summary>Development files for flang</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">flang</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2020-11-12</Date>
|
||||
<Version>11.0.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Idris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user