File: llvm-D57118-powerpc.patch

package info (click to toggle)
julia 1.5.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 91,132 kB
  • sloc: lisp: 278,486; ansic: 60,186; cpp: 29,801; sh: 2,403; makefile: 1,998; pascal: 1,313; objc: 647; javascript: 516; asm: 226; python: 161; xml: 34
file content (30 lines) | stat: -rw-r--r-- 1,055 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
commit 812db527538f30ac77a19d755e24109a6db7e569
Author: Keno Fischer <keno@juliacomputing.com>
Date:   Wed Jan 23 16:46:59 2019 -0500

    [CMake][PowerPC] Recognize LLVM_NATIVE_TARGET="ppc64le" as PowerPC
    
    Summary:
    This value is derived from the host triple, which on the machine
    I'm currently using is `ppc64le-linux-redhat`. This change makes
    LLVM compile.
    
    Reviewers: hfinkel
    
    Subscribers: nemanjai, mgorny, jsji, llvm-commits
    
    Differential Revision: https://reviews.llvm.org/D57118

diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 900c35ee4f0..b9c9757a4f6 100644
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -386,6 +386,8 @@ elseif (LLVM_NATIVE_ARCH MATCHES "sparc")
   set(LLVM_NATIVE_ARCH Sparc)
 elseif (LLVM_NATIVE_ARCH MATCHES "powerpc")
   set(LLVM_NATIVE_ARCH PowerPC)
+elseif (LLVM_NATIVE_ARCH MATCHES "ppc64le")
+  set(LLVM_NATIVE_ARCH PowerPC)
 elseif (LLVM_NATIVE_ARCH MATCHES "aarch64")
   set(LLVM_NATIVE_ARCH AArch64)
 elseif (LLVM_NATIVE_ARCH MATCHES "arm64")