diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2017-04-12 14:12:33 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-04-12 14:53:07 -0400 |
commit | 68c00a1b38707b2a5c813cbe3da3ffb7d97893b6 (patch) | |
tree | 5e07cc8cc72b41ca66ff2e6dcf86085b1217c798 /compiler/main/SysTools.hs | |
parent | 8121748dd79d648342fca2704122197c406a18e9 (diff) | |
download | haskell-68c00a1b38707b2a5c813cbe3da3ffb7d97893b6.tar.gz |
Drop special handling of iOS
iOS at least since iOS8 (we are currently at iOS10.3), allows for
dynamic libaries, hence any artificail restriction on dyanmic
libraries should be lifted.
Please ping me with any iOS related issues that should potentially
resurface. The iOS toolchain has considerably changed over the
years, and I'm willing to drop work arounds in good faith.
Reviewers: bgamari, austin
Reviewed By: bgamari
Subscribers: rwbarton, thomie
GHC Trac Issues: #13559, #7722
Differential Revision: https://phabricator.haskell.org/D3451
Diffstat (limited to 'compiler/main/SysTools.hs')
-rw-r--r-- | compiler/main/SysTools.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/main/SysTools.hs b/compiler/main/SysTools.hs index fd3faf1851..16f8d1aa79 100644 --- a/compiler/main/SysTools.hs +++ b/compiler/main/SysTools.hs @@ -1663,7 +1663,7 @@ linkDynLib dflags0 o_files dep_packages ++ pkg_lib_path_opts ++ pkg_link_opts )) - OSDarwin -> do + _ | os `elem` [OSDarwin, OSiOS] -> do ------------------------------------------------------------------- -- Making a darwin dylib ------------------------------------------------------------------- @@ -1723,7 +1723,6 @@ linkDynLib dflags0 o_files dep_packages ++ map Option pkg_link_opts ++ map Option pkg_framework_opts ) - OSiOS -> throwGhcExceptionIO (ProgramError "dynamic libraries are not supported on iOS target") _ -> do ------------------------------------------------------------------- -- Making a DSO |