summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Shao <astrohavoc@gmail.com>2022-08-23 14:45:58 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-08-24 02:37:38 -0400
commit112e4f9c9c299b460e37a60d8f8d8693aa6ab06a (patch)
treedb6ee207178d4fd6de35c5f410ae2f9e5c7fa547
parentb929063ec5473fc36fe3976ff0eb8064a2d2fc3d (diff)
downloadhaskell-112e4f9c9c299b460e37a60d8f8d8693aa6ab06a.tar.gz
driver: don't actually merge objects when ar -L works
-rw-r--r--compiler/GHC/Driver/Pipeline/Execute.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Driver/Pipeline/Execute.hs b/compiler/GHC/Driver/Pipeline/Execute.hs
index 08df732873..f19cb05ab5 100644
--- a/compiler/GHC/Driver/Pipeline/Execute.hs
+++ b/compiler/GHC/Driver/Pipeline/Execute.hs
@@ -1180,7 +1180,7 @@ via gcc.
-- | See Note [Object merging].
joinObjectFiles :: HscEnv -> [FilePath] -> FilePath -> IO ()
joinObjectFiles hsc_env o_files output_fn
- | can_merge_objs = do
+ | can_merge_objs && not dashLSupported = do
let toolSettings' = toolSettings dflags
ldIsGnuLd = toolSettings_ldIsGnuLd toolSettings'
ld_r args = GHC.SysTools.runMergeObjects (hsc_logger hsc_env) (hsc_tmpfs hsc_env) (hsc_dflags hsc_env) (