haskell / haskell/cabal

Add a configure check for whether GHC supports -threaded

Open
#1,131 2 comments 0 reactions 0 assignees Claimed by @23Skidoo View on GitHub
Cabal: other type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Apparently, GHC on ARM doesn't support `-threaded`, which makes it impossible to build `cabal-install` without editing the source by hand (see #1129). We should add a configure check for whether `-threaded` is supported.

Contributor guide

Open the contributing guide

Research direction

Start by locating the configure logic that determines compiler support and the place where -threaded is enabled. Check how the project behaves with an ARM GHC, then make the configuration account for whether -threaded is supported. Done means cabal-install can be built without manually editing the source when -threaded is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.