]> git.pld-linux.org Git - packages/llvm.git/commitdiff
add triplet for aarch64
authorJan Palus <atler@pld-linux.org>
Mon, 4 May 2020 22:00:38 +0000 (00:00 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 4 May 2020 22:00:38 +0000 (00:00 +0200)
llvm-pld.patch

index 759396796261a4bbc42ebc4e0c9a3e90b873142e..a78bf518c659ad0616f1fc629387c064fdd99f8a 100644 (file)
@@ -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[] = {
        "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",
This page took 0.308858 seconds and 4 git commands to generate.