diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-03-28 12:08:01 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2022-04-04 03:33:58 -0400 |
commit | 517ddff9b685d57475b63d73bab6bb623c24cd76 (patch) | |
tree | 31bc9a42329f9a5c5eb8242f0d7185e6c53761d8 /compiler/GHC/Settings.hs | |
parent | edbfea66d149a056640a5f7e358234171e67a4ee (diff) | |
download | haskell-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.hs | 4 |
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 |