diff options
author | Demi Obenour <demiobenour@gmail.com> | 2017-01-10 13:37:47 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-01-10 13:37:48 -0500 |
commit | 58e68b37e74fd226ef6be1d59785cb899e01dbd5 (patch) | |
tree | 33a876c7219ac6513fdae1f9bc7a16165bda2b35 /compiler/utils/Platform.hs | |
parent | 8a76d32e4fbdafe787a0f5b2a492c0d0ea1ed980 (diff) | |
download | haskell-58e68b37e74fd226ef6be1d59785cb899e01dbd5.tar.gz |
Enable subsections via symbols on iOS
Test Plan: GHC CI
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2915
GHC Trac Issues: #11040, #13049
Diffstat (limited to 'compiler/utils/Platform.hs')
-rw-r--r-- | compiler/utils/Platform.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/utils/Platform.hs b/compiler/utils/Platform.hs index 600ed8099d..86c70a9789 100644 --- a/compiler/utils/Platform.hs +++ b/compiler/utils/Platform.hs @@ -14,6 +14,7 @@ module Platform ( isARM, osElfTarget, osMachOTarget, + osSubsectionsViaSymbols, platformUsesFrameworks, platformBinariesAreStaticLibs, ) @@ -161,6 +162,11 @@ osBinariesAreStaticLibs :: OS -> Bool osBinariesAreStaticLibs OSiOS = True osBinariesAreStaticLibs _ = False +osSubsectionsViaSymbols :: OS -> Bool +osSubsectionsViaSymbols OSDarwin = True +osSubsectionsViaSymbols OSiOS = True +osSubsectionsViaSymbols _ = False + platformBinariesAreStaticLibs :: Platform -> Bool platformBinariesAreStaticLibs = osBinariesAreStaticLibs . platformOS |