[Git][ghc/ghc][wip/supersven/riscv64-cross-ci] ghc-toolchain: Set -fuse-ld even for ld.bfd

Sven Tennie (@supersven) gitlab at gitlab.haskell.org
Fri Sep 20 05:41:32 UTC 2024



Sven Tennie pushed to branch wip/supersven/riscv64-cross-ci at Glasgow Haskell Compiler / GHC


Commits:
88bd9a1f by Sven Tennie at 2024-09-20T07:39:16+02:00
ghc-toolchain: Set -fuse-ld even for ld.bfd

This reflects the behaviour of the autoconf scripts.

- - - - -


1 changed file:

- utils/ghc-toolchain/src/GHC/Toolchain/Tools/Link.hs


Changes:

=====================================
utils/ghc-toolchain/src/GHC/Toolchain/Tools/Link.hs
=====================================
@@ -91,7 +91,7 @@ findLinkFlags enableOverride cc ccLink
           -- executable exists before trying cc.
           do _ <- findProgram (linker ++ " linker") emptyProgOpt ["ld."++linker]
              prog <$ checkLinkWorks cc prog
-        | linker <- ["lld", "gold"]
+        | linker <- ["lld", "gold", "bfd"]
         , let prog = over _prgFlags (++["-fuse-ld="++linker]) ccLink
         ]
         <|> (ccLink <$ checkLinkWorks cc ccLink)



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/88bd9a1f06b6fe3efb1a0a1888e8e8ca82782388

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/88bd9a1f06b6fe3efb1a0a1888e8e8ca82782388
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240920/92ec6125/attachment.html>


More information about the ghc-commits mailing list