[packages/llvm] add triplet for aarch64

atler atler at pld-linux.org
Tue May 5 00:01:47 CEST 2020


commit 6d24580263a7fcb417f14a4aa80b60e96dfbd95d
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue May 5 00:00:38 2020 +0200

    add triplet for aarch64

 llvm-pld.patch | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/llvm-pld.patch b/llvm-pld.patch
index 7593967..a78bf51 100644
--- a/llvm-pld.patch
+++ b/llvm-pld.patch
@@ -1,6 +1,14 @@
 --- llvm-5.0.0.src.orig/tools/clang/lib/Driver/ToolChains/Gnu.cpp	2016-08-18 19:56:48.000000000 +0200
 +++ llvm-5.0.0.src/tools/clang/lib/Driver/ToolChains/Gnu.cpp	2016-11-03 12:18:35.000000000 +0100
-@@ -1498,6 +1498,7 @@
+@@ -1996,6 +1996,7 @@
+   // lifetime or initialization issues.
+   static const char *const AArch64LibDirs[] = {"/lib64", "/lib"};
+   static const char *const AArch64Triples[] = {
++      "aarch64-pld-linux",
+       "aarch64-none-linux-gnu", "aarch64-linux-gnu", "aarch64-redhat-linux",
+       "aarch64-suse-linux", "aarch64-linux-android"};
+   static const char *const AArch64beLibDirs[] = {"/lib"};
+@@ -2020,6 +2021,7 @@
  
    static const char *const X86_64LibDirs[] = {"/lib64", "/lib"};
    static const char *const X86_64Triples[] = {
@@ -8,7 +16,7 @@
        "x86_64-linux-gnu",       "x86_64-unknown-linux-gnu",
        "x86_64-pc-linux-gnu",    "x86_64-redhat-linux6E",
        "x86_64-redhat-linux",    "x86_64-suse-linux",
-@@ -1558,6 +1559,7 @@
+@@ -2029,6 +2031,7 @@
    static const char *const X32LibDirs[] = {"/libx32"};
    static const char *const X86LibDirs[] = {"/lib32", "/lib"};
    static const char *const X86Triples[] = {
@@ -16,16 +24,16 @@
        "i686-linux-gnu",       "i686-pc-linux-gnu",     "i486-linux-gnu",
        "i386-linux-gnu",       "i386-redhat-linux6E",   "i686-redhat-linux",
        "i586-redhat-linux",    "i386-redhat-linux",     "i586-suse-linux",
-@@ -1591,6 +1593,7 @@
+@@ -2069,6 +2072,7 @@
  
    static const char *const PPCLibDirs[] = {"/lib32", "/lib"};
    static const char *const PPCTriples[] = {
 +      "powerpc-pld-linux",
        "powerpc-linux-gnu", "powerpc-unknown-linux-gnu", "powerpc-linux-gnuspe",
-       "powerpc-suse-linux", "powerpc-montavista-linuxspe"};
-   static const char *const PPC64LibDirs[] = {"/lib64", "/lib"};
-@@ -1603,14 +1606,14 @@
-       "powerpc64le-suse-linux", "ppc64le-redhat-linux"};
+       // On 32-bit PowerPC systems running SUSE Linux, gcc is configured as a
+       // 64-bit compiler which defaults to "-m32", hence "powerpc64-suse-linux".
+@@ -2093,14 +2097,14 @@
+                                                "riscv64-suse-linux"};
  
    static const char *const SPARCv8LibDirs[] = {"/lib32", "/lib"};
 -  static const char *const SPARCv8Triples[] = {"sparc-linux-gnu",
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/6d24580263a7fcb417f14a4aa80b60e96dfbd95d



More information about the pld-cvs-commit mailing list