summaryrefslogtreecommitdiff
path: root/compiler/GHC/Settings.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-03-28 12:08:01 -0400
committerBen Gamari <ben@smart-cactus.org>2022-04-04 03:33:58 -0400
commit517ddff9b685d57475b63d73bab6bb623c24cd76 (patch)
tree31bc9a42329f9a5c5eb8242f0d7185e6c53761d8 /compiler/GHC/Settings.hs
parentedbfea66d149a056640a5f7e358234171e67a4ee (diff)
downloadhaskell-wip/object-merging-via-archives.tar.gz
Build ar archives with -L when "joining" objectswip/object-merging-via-archives
Since there may be .o files which are in fact archives.
Diffstat (limited to 'compiler/GHC/Settings.hs')
-rw-r--r--compiler/GHC/Settings.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/GHC/Settings.hs b/compiler/GHC/Settings.hs
index 2014a437ca..92bfa75699 100644
--- a/compiler/GHC/Settings.hs
+++ b/compiler/GHC/Settings.hs
@@ -23,6 +23,7 @@ module GHC.Settings
, sLdIsGnuLd
, sGccSupportsNoPie
, sUseInplaceMinGW
+ , sArSupportsDashL
, sPgm_L
, sPgm_P
, sPgm_F
@@ -91,6 +92,7 @@ data ToolSettings = ToolSettings
, toolSettings_ldIsGnuLd :: Bool
, toolSettings_ccSupportsNoPie :: Bool
, toolSettings_useInplaceMinGW :: Bool
+ , toolSettings_arSupportsDashL :: Bool
-- commands for particular phases
, toolSettings_pgm_L :: String
@@ -197,6 +199,8 @@ sGccSupportsNoPie :: Settings -> Bool
sGccSupportsNoPie = toolSettings_ccSupportsNoPie . sToolSettings
sUseInplaceMinGW :: Settings -> Bool
sUseInplaceMinGW = toolSettings_useInplaceMinGW . sToolSettings
+sArSupportsDashL :: Settings -> Bool
+sArSupportsDashL = toolSettings_arSupportsDashL . sToolSettings
sPgm_L :: Settings -> String
sPgm_L = toolSettings_pgm_L . sToolSettings