summaryrefslogtreecommitdiff
path: root/compiler/main/DriverPipeline.hs
diff options
context:
space:
mode:
authorDemi Obenour <demiobenour@gmail.com>2017-01-10 13:37:47 -0500
committerBen Gamari <ben@smart-cactus.org>2017-01-10 13:37:48 -0500
commit58e68b37e74fd226ef6be1d59785cb899e01dbd5 (patch)
tree33a876c7219ac6513fdae1f9bc7a16165bda2b35 /compiler/main/DriverPipeline.hs
parent8a76d32e4fbdafe787a0f5b2a492c0d0ea1ed980 (diff)
downloadhaskell-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/main/DriverPipeline.hs')
-rw-r--r--compiler/main/DriverPipeline.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index a62233d8a8..a54e05c1fb 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -1794,7 +1794,7 @@ linkBinary' staticLink dflags o_files dep_packages = do
in ["-L" ++ l] ++ ["-Wl,-rpath", "-Wl," ++ libpath]
| otherwise = ["-L" ++ l]
- let dead_strip = if osMachOTarget (platformOS platform)
+ let dead_strip = if osSubsectionsViaSymbols (platformOS platform)
then ["-Wl,-dead_strip"]
else []
let lib_paths = libraryPaths dflags