Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions testsuite/ghc-config/ghc-config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ main = do
info <- readProcess ghc ["+RTS", "--info"] ""
let fields = read info :: [(String,String)]
getGhcFieldOrFail fields "HostOS" "Host OS"
getGhcFieldOrFail fields "WORDSIZE" "Word size"
getGhcFieldOrFail fields "TARGETPLATFORM" "Host platform"
getGhcFieldOrFail fields "TargetOS_CPP" "Host OS"
getGhcFieldOrFail fields "TargetARCH_CPP" "Host architecture"
getGhcFieldOrFail fields "RTSWay" "RTS way"

-- support for old GHCs (pre 9.13): infer target platform by querying the rts...
Expand Down