[Git][ghc/ghc][wip/24588] ghc-toolchain: Also configure windres on non-windows platforms.
Zubin pushed to branch wip/24588 at Glasgow Haskell Compiler / GHC Commits: 8620a2a6 by Zubin Duggal at 2026-01-20T18:30:12+05:30 ghc-toolchain: Also configure windres on non-windows platforms. It may be needed for cross compilation. Fixes #24588 - - - - - 1 changed file: - utils/ghc-toolchain/exe/Main.hs Changes: ===================================== utils/ghc-toolchain/exe/Main.hs ===================================== @@ -480,13 +480,8 @@ mkTarget opts = do opt <- optional $ findProgram "opt" (optOpt opts) ["opt"] llvmAs <- optional $ findProgram "llvm assembler" (optLlvmAs opts) ["clang"] - -- Windows-specific utilities - windres <- - case archOS_OS archOs of - OSMinGW32 -> do - windres <- findProgram "windres" (optWindres opts) ["windres"] - return (Just windres) - _ -> return Nothing + -- for windows, also used for cross compiling + windres <- optional $ findProgram "windres" (optWindres opts) ["windres"] -- Darwin-specific utilities (otool, installNameTool) <- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8620a2a69c3dd9ece92c86c865728aa3... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8620a2a69c3dd9ece92c86c865728aa3... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Zubin (@wz1000)