Update to ubuntu 18.04 in docker image
[termux-packages] / disabled-packages / ghc / compiler-llvmGen-LlvmCodeGen-Ppr.hs.patch
CommitLineData
b0eddded
FF
1diff -u -r ../ghc-8.0.1/compiler/llvmGen/LlvmCodeGen/Ppr.hs ./compiler/llvmGen/LlvmCodeGen/Ppr.hs
2--- ../ghc-8.0.1/compiler/llvmGen/LlvmCodeGen/Ppr.hs 2016-05-16 13:08:53.000000000 -0400
3+++ ./compiler/llvmGen/LlvmCodeGen/Ppr.hs 2016-06-23 17:54:27.073877144 -0400
4@@ -44,12 +44,18 @@
5 Platform { platformArch = ArchX86, platformOS = OSLinux } ->
6 text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32\""
7 $+$ text "target triple = \"i386-pc-linux-gnu\""
8+ Platform { platformArch = ArchX86, platformOS = OSAndroid } ->
9+ text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32\""
10+ $+$ text "target triple = \"i386-pc-linux-android\""
11 Platform { platformArch = ArchX86_64, platformOS = OSDarwin } ->
12 text "target datalayout = \"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64\""
13 $+$ text "target triple = \"x86_64-apple-darwin10.0.0\""
14 Platform { platformArch = ArchX86_64, platformOS = OSLinux } ->
15 text "target datalayout = \"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64\""
16 $+$ text "target triple = \"x86_64-linux-gnu\""
17+ Platform { platformArch = ArchX86_64, platformOS = OSAndroid } ->
18+ text "target datalayout = \"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64\""
19+ $+$ text "target triple = \"x86_64-linux-android\""
20 Platform { platformArch = ArchARM {}, platformOS = OSLinux } ->
21 text "target datalayout = \"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32\""
22 $+$ text "target triple = \"armv6-unknown-linux-gnueabihf\""
23@@ -71,6 +77,9 @@
24 Platform { platformArch = ArchARM64, platformOS = OSLinux } ->
25 text "target datalayout = \"e-m:e-i64:64-i128:128-n32:64-S128\""
26 $+$ text "target triple = \"aarch64-unknown-linux-gnu\""
27+ Platform { platformArch = ArchARM64, platformOS = OSAndroid } ->
28+ text "target datalayout = \"e-m:e-i64:64-i128:128-n32:64-S128\""
29+ $+$ text "target triple = \"aarch64-unknown-linux-android\""
30 _ ->
31 if platformIsCrossCompiling platform
32 then panic "LlvmCodeGen.Ppr: Cross compiling without valid target info."