diff options
author | Austin Seipp <aseipp@pobox.com> | 2013-08-23 21:49:50 -0500 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2013-08-24 05:03:15 -0500 |
commit | b7130bfd1a042753a177c7212aee8223846f7992 (patch) | |
tree | f895f08bd2e9055d527eddfe86d91233b554367b /compiler/llvmGen | |
parent | 6a02f280e074278acceb6e9331bb00dccfe02f08 (diff) | |
download | haskell-b7130bfd1a042753a177c7212aee8223846f7992.tar.gz |
Add support for iOS simulator (issue #8152).
The iOS simulator is essentially an iOS target but for an x86 machine
instead. It doesn't support the native code generator either, though.
Authored-by: Stephen Blackheath <...@blacksapphire.com>
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'compiler/llvmGen')
-rw-r--r-- | compiler/llvmGen/LlvmCodeGen/Ppr.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/llvmGen/LlvmCodeGen/Ppr.hs b/compiler/llvmGen/LlvmCodeGen/Ppr.hs index 1c63d3f67f..a45902808e 100644 --- a/compiler/llvmGen/LlvmCodeGen/Ppr.hs +++ b/compiler/llvmGen/LlvmCodeGen/Ppr.hs @@ -61,6 +61,9 @@ moduleLayout = sdocWithPlatform $ \platform -> Platform { platformArch = ArchARM {}, platformOS = OSiOS } -> 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\"" $+$ text "target triple = \"arm-apple-darwin10\"" + Platform { platformArch = ArchX86, platformOS = OSiOS } -> + 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:128:128-n8:16:32\"" + $+$ text "target triple = \"i386-apple-darwin11\"" _ -> -- FIX: Other targets empty |